- actionAddEvent
void actionAddEvent(StringArg0 action, InputEvent event)
- actionEraseEvent
void actionEraseEvent(StringArg0 action, InputEvent event)
- actionEraseEvents
void actionEraseEvents(StringArg0 action)
Removes all events from an action.
- actionHasEvent
bool actionHasEvent(StringArg0 action, InputEvent event)
Returns true if the action has the given InputEvent associated with it.
- actionSetDeadzone
void actionSetDeadzone(StringArg0 action, double deadzone)
- addAction
void addAction(StringArg0 action, double deadzone)
Adds an empty action to the InputMap with a configurable deadzone.
An InputEvent can then be added to this action with actionAddEvent.
- eraseAction
void eraseAction(StringArg0 action)
Removes an action from the InputMap.
- eventIsAction
bool eventIsAction(InputEvent event, StringArg1 action)
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 if you don't want this behavior.
- getActionList
Array getActionList(StringArg0 action)
Returns an array of InputEvents associated with a given action.
- getActions
Array getActions()
Returns an array of all actions in the InputMap.
- hasAction
bool hasAction(StringArg0 action)
Returns true if the InputMap has a registered action with the given name.
- loadFromGlobals
void loadFromGlobals()
Clears all InputEventAction in the InputMap and load it anew from ProjectSettings.
- opAssign
InputMapSingleton opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(InputMapSingleton other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
Singleton that manages InputEventAction.
Manages all InputEventAction which can be created/modified from the project settings menu Project > Project Settings > Input Map or in code with addAction and actionAddEvent. See Node._input.