InputEventAction

Input event type for actions.

Contains a generic action which can be targeted from several types of inputs. Actions can be created from the Input Map tab in the Project > Project Settings menu. See Node._input.

Members

Aliases

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

Functions

getAction
String getAction()
getStrength
double getStrength()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(InputEventAction other)
opEquals
bool opEquals(typeof(null) n)
setAction
void setAction(String action)
setPressed
void setPressed(bool pressed)
setStrength
void setStrength(double strength)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

action
String action [@property getter]
String action [@property setter]

The action's name. Actions are accessed via this String.

pressed
bool pressed [@property getter]
bool pressed [@property setter]

If true, the action's state is pressed. If false, the action's state is released.

strength
double strength [@property getter]
double strength [@property setter]

The action's strength between 0 and 1. This value is considered as equal to 0 if pressed is false. The event strength allows faking analog joypad motion events, by specifying how strongly the joypad axis is bent or pressed.

Static functions

_new
InputEventAction _new()

Construct a new instance of InputEventAction. Note: use memnew!InputEventAction 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