API reference
Preparing search index…

Mouse

Functions

getPosition

Return the mouse pixel position relative to the client area if a window is provided, or to the desktop otherwise.

isButtonPressed

Query a mouse button's real-time pressed state.

setPosition

Move the mouse using client-area pixel coordinates if a window is provided, or desktop pixel coordinates otherwise.

References

Button → MouseButton
ButtonCount → MouseButtonCount
Wheel → MouseWheel

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0