Expand description
Mouse utility functions.
Structs
Stores state information for the mouse input.
Enums
Describes the appearance of the mouse cursor.
Describes a button of a mouse controller.
Functions
button_just_pressedDeprecated
Returns whether or not the given mouse button has been pressed this frame.
button_just_releasedDeprecated
Returns whether or not the given mouse button has been released this frame.
button_pressedDeprecated
Returns whether or not the given mouse button is pressed.
Get whether or not the mouse is grabbed.
cursor_hiddenDeprecated
Set whether or not the mouse is hidden (invisible)
cursor_typeDeprecated
Returns the current mouse cursor type of the window.
deltaDeprecated
Get the distance the cursor was moved during the current frame, in pixels.
handle_moveDeprecated
Updates delta and position values.
The inputs are interpreted as pixel coordinates inside the window.
positionDeprecated
Get the current position of the mouse cursor, in pixels.
Complement to
set_position()
.
Uses strictly window-only coordinates.Set whether or not the mouse is grabbed (confined to the window)
Set whether or not the mouse is hidden (invisible).
Modifies the mouse cursor type of the window.
Set the current position of the mouse cursor, in pixels.
Uses strictly window-only coordinates.