InputMapSingleton

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.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

actionAddEvent
void actionAddEvent(StringArg0 action, InputEvent event)

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

actionEraseEvent
void actionEraseEvent(StringArg0 action, InputEvent event)

Removes an InputEvent from an action.

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.

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
InputMapSingleton _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta