SFML/test/Window/Mouse.test.cpp
2025-01-09 15:25:13 +01:00

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));
}
}