mirror of
https://github.com/SFML/SFML.git
synced 2025-01-19 07:45:13 +08:00
18 lines
554 B
C++
18 lines
554 B
C++
#include <SFML/Window/Mouse.hpp>
|
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
#include <WindowUtil.hpp>
|
|
|
|
TEST_CASE("[Window] sf::Mouse", runDisplayTests())
|
|
{
|
|
SECTION("isButtonPressed()")
|
|
{
|
|
CHECK(!sf::Mouse::isButtonPressed(sf::Mouse::Button::Left));
|
|
CHECK(!sf::Mouse::isButtonPressed(sf::Mouse::Button::Right));
|
|
CHECK(!sf::Mouse::isButtonPressed(sf::Mouse::Button::Middle));
|
|
CHECK(!sf::Mouse::isButtonPressed(sf::Mouse::Button::Extra1));
|
|
CHECK(!sf::Mouse::isButtonPressed(sf::Mouse::Button::Extra2));
|
|
}
|
|
}
|