Module macroquad::input

source ·
Expand description

Cross-platform mouse, keyboard (and gamepads soon) module.

Modules

Functions for advanced input processing.

Structs

Enums

Functions

Return the last pressed char. Each “get_char_pressed” call will consume a character from the input queue.
Return the last pressed key.
Detect if the key is being pressed
Detect if the key has been pressed once
Detect if the key has been released this frame
Detect if the button is being pressed
Detect if the button has been pressed once
Detect if the button has been released this frame
Detect if quit has been requested
This is set to true by default, meaning touches will raise mouse events in addition to raising touch events. If set to false, touches won’t affect mouse events.
Return mouse position in pixels.
Return mouse position in range [-1; 1].
Prevents quit
Constrain mouse to window
Set mouse cursor visibility
This is set to true by default, meaning touches will raise mouse events in addition to raising touch events. If set to false, touches won’t affect mouse events.
Return touches with positions in pixels.
Return touches with positions in range [-1; 1].