Input
Inherits: ObjectDescription
A singleton for handling inputs. The Input singleton handles key presses, mouse buttons and movement, gamepads, and input actions.Properties
MouseMode
Controls the mouse mode (visible, hidden, captured, confined).
Methods
is_action_pressed
StringName
The action name to check
is_action_just_pressed
is_key_pressed
get_vector
get_axis
is_mouse_button_pressed
Example Usage
- GDScript
- C#