how to get mouse position on window sfm;

[ad_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

[ad_2]

Please follow and like us:
Content Protection by DMCA.com