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(String action, InputEvent event)

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

actionEraseEvent
void actionEraseEvent(String action, InputEvent event)

Removes an InputEvent from an action.

actionEraseEvents
void actionEraseEvents(String action)

Removes all events from an action.

actionHasEvent
bool actionHasEvent(String action, InputEvent event)

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

actionSetDeadzone
void actionSetDeadzone(String action, double deadzone)

Sets a deadzone value for the action.

addAction
void addAction(String 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(String action)

Removes an action from the InputMap.

eventIsAction
bool eventIsAction(InputEvent event, String 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(String 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(String 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
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(InputMapSingleton other)
opEquals
bool opEquals(typeof(null) n)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
InputMapSingleton _new()

Construct a new instance of InputMapSingleton. Note: use memnew!InputMapSingleton instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
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
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(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