InputMap

    Category: Core

    Singleton that manages .

    Manages all InputEventAction which can be created/modified from the project settings menu or in code with and action_add_event. See .

    • void action_add_event ( String action, event )

    Adds an InputEvent to an action. This will trigger the action.


    • void action_erase_event ( String action, event )

    • void action_erase_events ( String action )

    Removes all events from an action.


    • action_has_event ( String action, event )

    Returns true if the action has the given InputEvent associated with it.


    • void action_set_deadzone ( action, float deadzone )

    Adds an empty action to the InputMap with a configurable .

    An can then be added to this action with action_add_event.


    • void erase_action ( action )

    • bool event_is_action ( event, String action ) const

    Returns true if the given event is part of an existing action. This method ignores keyboard modifiers if the given is not pressed (for proper release detection). See action_has_event if you don’t want this behavior.


    • get_action_list ( String action )

    Returns an array of s associated with a given action.


    Returns an array of all actions in the .


    • has_action ( String action ) const

    Returns true if the InputMap has a registered action with the given name.