Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

InputMap

Inherits: Object

A singleton that manages all InputEventActions.

Description

Manages all InputEventAction which can be created/modified from the project settings menu Project > Project Settings > Input Map or in code with add_action and action_add_event. See Node._input.

Tutorials

Methods

void

action_add_event ( StringName action, InputEvent event )

void

action_erase_event ( StringName action, InputEvent event )

void

action_erase_events ( StringName action )

float

action_get_deadzone ( StringName action )

InputEvent[]

action_get_events ( StringName action )

bool

action_has_event ( StringName action, InputEvent event )

void

action_set_deadzone ( StringName action, float deadzone )

void

add_action ( StringName action, float deadzone=0.5 )

void

erase_action ( StringName action )

bool

event_is_action ( InputEvent event, StringName action, bool exact_match=false ) const

StringName[]</