InputMap Class |
Manages all InputEventAction which can be created/modified from the project settings menu Project > Project Settings > Input Map or in code with AddAction(String, Single) and ActionAddEvent(String, InputEvent). See _Input(InputEvent).
Namespace: Godot
public static class InputMap
The InputMap type exposes the following members.
Name | Description | |
---|---|---|
ActionAddEvent | Adds an InputEvent to an action. This InputEvent will trigger the action. | |
ActionEraseEvent | Removes an InputEvent from an action. | |
ActionEraseEvents | Removes all events from an action. | |
ActionHasEvent | Returns true if the action has the given InputEvent associated with it. | |
ActionSetDeadzone | Sets a deadzone value for the action. | |
AddAction | Adds an empty action to the InputMap with a configurable deadzone. An InputEvent can then be added to this action with ActionAddEvent(String, InputEvent). | |
EraseAction | Removes an action from the InputMap. | |
EventIsAction | Returns true if the given event is part of an existing action. This method ignores keyboard modifiers if the given InputEvent is not pressed (for proper release detection). See ActionHasEvent(String, InputEvent) if you don't want this behavior. | |
GetActionList | Returns an array of InputEvents associated with a given action. | |
GetActions | Returns an array of all actions in the InputMap. | |
HasAction | Returns true if the InputMap has a registered action with the given name. | |
LoadFromGlobals | Clears all InputEventAction in the InputMap and load it anew from ProjectSettings. |