31#include <SFML/Window/Export.hpp>
32#include <SFML/System/Vector2.hpp>
Give access to the real-time state of the mouse.
static void setPosition(const Vector2i &position)
Set the current position of the mouse in desktop coordinates.
@ XButton2
The second extra mouse button.
@ Middle
The middle (wheel) mouse button.
@ Left
The left mouse button.
@ XButton1
The first extra mouse button.
@ Right
The right mouse button.
@ VerticalWheel
The vertical mouse wheel.
static void setPosition(const Vector2i &position, const WindowBase &relativeTo)
Set the current position of the mouse in window coordinates.
static bool isButtonPressed(Button button)
Check if a mouse button is pressed.
static Vector2i getPosition()
Get the current position of the mouse in desktop coordinates.
static Vector2i getPosition(const WindowBase &relativeTo)
Get the current position of the mouse in window coordinates.
Utility template class for manipulating 2-dimensional vectors.
Window that serves as a base for other windows.