Answers for "how to get mouse position on window sfm;"

C++
1

how to get mouse position on window sfm;

sf::Vector2i position = sf::Mouse::getPosition(window);

// position will contain the x and y of your mouse

position.x >> 0
position.y >> 0
Posted by: Guest on June-19-2021

Code answers related to "how to get mouse position on window sfm;"

Browse Popular Code Answers by Language