Go to the source code of this file.
| Enumerations | |
| enum | sfMouseButton { sfMouseLeft, sfMouseRight, sfMouseMiddle, sfMouseXButton1, sfMouseXButton2, sfMouseButtonCount } | 
| Mouse buttons.  More... | |
| enum | sfMouseWheel { sfMouseVerticalWheel, sfMouseHorizontalWheel } | 
| Mouse wheels.  More... | |
| Functions | |
| CSFML_WINDOW_API sfBool | sfMouse_isButtonPressed (sfMouseButton button) | 
| Check if a mouse button is pressed.  More... | |
| CSFML_WINDOW_API sfVector2i | sfMouse_getPosition (const sfWindow *relativeTo) | 
| Get the current position of the mouse.  More... | |
| CSFML_WINDOW_API void | sfMouse_setPosition (sfVector2i position, const sfWindow *relativeTo) | 
| Set the current position of the mouse.  More... | |
| enum sfMouseButton | 
Mouse buttons.
| enum sfMouseWheel | 
| CSFML_WINDOW_API sfVector2i sfMouse_getPosition | ( | const sfWindow * | relativeTo | ) | 
Get the current position of the mouse.
This function returns the current position of the mouse cursor relative to the given window, or desktop if NULL is passed.
| relativeTo | Reference window | 
| CSFML_WINDOW_API sfBool sfMouse_isButtonPressed | ( | sfMouseButton | button | ) | 
Check if a mouse button is pressed.
| button | Button to check | 
| CSFML_WINDOW_API void sfMouse_setPosition | ( | sfVector2i | position, | 
| const sfWindow * | relativeTo | ||
| ) | 
Set the current position of the mouse.
This function sets the current position of the mouse cursor relative to the given window, or desktop if NULL is passed.
| position | New position of the mouse | 
| relativeTo | Reference window |