InputMap

    Singleton that manages .

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

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


    • void action_erase_event ( String action, event )

    Removes an InputEvent from an action.


    • void action_erase_events ( action )

    Returns if the action has the given associated with it.


    • void action_set_deadzone ( String action, deadzone )

    Sets a deadzone value for the action.


    • void add_action ( String action, deadzone=0.5 )

    Adds an empty action to the InputMap with a configurable deadzone.

    An InputEvent can then be added to this action with .



    • 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 InputMap.


    • has_action ( String action ) const

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


    • void load_from_globals ( )