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_pressedDeprecatedReturns whether or not the given mouse button has been pressed this frame.
- button_just_releasedDeprecatedReturns whether or not the given mouse button has been released this frame.
- button_pressedDeprecatedReturns whether or not the given mouse button is pressed.
- Get whether or not the mouse is grabbed.
- cursor_hiddenDeprecatedSet whether or not the mouse is hidden (invisible)
- cursor_typeDeprecatedReturns the current mouse cursor type of the window.
- deltaDeprecatedGet the distance the cursor was moved during the current frame, in pixels.
- handle_moveDeprecatedUpdates delta and position values. The inputs are interpreted as pixel coordinates inside the window.
- positionDeprecatedGet 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.