Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
MousePosition
Print
Pages: [
1
]
Author
Topic: MousePosition (Read 1861 times)
0 Members and 1 Guest are viewing this topic.
GSG3D
Newbie
Posts: 1
MousePosition
«
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?
Logged
Nexus
SFML Team
Hero Member
Posts: 6287
Thor Developer
MousePosition
«
Reply #1 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.
Logged
Zloxx II
: action platformer
Thor Library
: particle systems, animations, dot products, ...
SFML Game Development
:
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
MousePosition
anything