sfml mouse click

Solutions on MaxInterview for sfml mouse click by the best coders in the world

showing results for - "sfml mouse click"
Nico
23 Feb 2020
1if (sf::Mouse::isButtonPressed(sf::Mouse::Left))
2{
3    // left click...
4}
5// get global mouse position
6sf::Vector2i position = sf::Mouse::getPosition();
7// set mouse position relative to a window
8sf::Mouse::setPosition(sf::Vector2i(100, 200), window);