SFML community forums

Help => Window => Topic started by: GSG3D on March 10, 2012, 08:21:27 am

Title: MousePosition
Post by: GSG3D on March 10, 2012, 08:21:27 am
As I do so when the mouse pointer when in a specified coordinate (x, y)  or when the pointer touches a sprite,run a action?
Title: MousePosition
Post by: Nexus on March 10, 2012, 09:51:57 am
Assuming SFML 2, the functions sf::Mouse::GetPosition() and sf::Sprite::GetGlobalBounds() might help you, take a look at their documentation.