59static constexpr unsigned int ButtonCount{5};
#define SFML_WINDOW_API
Definition Export.hpp:42
Window that serves as a base for other windows.
Definition WindowBase.hpp:63
Give access to the real-time state of the mouse.
Definition Mouse.hpp:44
SFML_WINDOW_API bool isButtonPressed(Button button)
Check if a mouse button is pressed.
Button
Mouse buttons.
Definition Mouse.hpp:50
@ Extra1
The first extra mouse button.
Definition Mouse.hpp:54
@ Extra2
The second extra mouse button.
Definition Mouse.hpp:55
@ Right
The right mouse button.
Definition Mouse.hpp:52
@ Left
The left mouse button.
Definition Mouse.hpp:51
@ Middle
The middle (wheel) mouse button.
Definition Mouse.hpp:53
Wheel
Mouse wheels.
Definition Mouse.hpp:66
@ Vertical
The vertical mouse wheel.
Definition Mouse.hpp:67
@ Horizontal
The horizontal mouse wheel.
Definition Mouse.hpp:68
SFML_WINDOW_API void setPosition(Vector2i position)
Set the current position of the mouse in desktop coordinates.
SFML_WINDOW_API Vector2i getPosition()
Get the current position of the mouse in desktop coordinates.
Definition BlendMode.hpp:34
Vector2< int > Vector2i
Definition Vector2.hpp:224