how to get mouse position on window sfm 3b

Solutions on MaxInterview for how to get mouse position on window sfm 3b by the best coders in the world

showing results for - "how to get mouse position on window sfm 3b"
Lilou
08 Jul 2020
1sf::Vector2i position = sf::Mouse::getPosition(window);
2
3// position will contain the x and y of your mouse
4
5position.x >> 0
6position.y >> 0
similar questions
sfml mouse click