InputEvent

Generic input event

Base class of all sort of input event. See Node._input.

Members

Aliases

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

Functions

asText
String asText()

Returns a String representation of the event.

getActionStrength
double getActionStrength(StringArg0 action)
getDevice
long getDevice()
isAction
bool isAction(StringArg0 action)

Returns true if this input event matches a pre-defined action of any type.

isActionPressed
bool isActionPressed(StringArg0 action)

Returns true if the given action is being pressed (and is not an echo event for KEY events). Not relevant for the event types MOUSE_MOTION, SCREEN_DRAG or NONE.

isActionReleased
bool isActionReleased(StringArg0 action)

Returns true if the given action is released (i.e. not pressed). Not relevant for the event types MOUSE_MOTION, SCREEN_DRAG or NONE.

isActionType
bool isActionType()

Returns true if this input event's type is one of the InputEvent constants.

isEcho
bool isEcho()

Returns true if this input event is an echo event (only for events of type KEY).

isPressed
bool isPressed()

Returns true if this input event is pressed. Not relevant for the event types MOUSE_MOTION, SCREEN_DRAG or NONE.

opAssign
InputEvent opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(InputEvent 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.
setDevice
void setDevice(long device)
shortcutMatch
bool shortcutMatch(InputEvent event)
xformedBy
Ref!InputEvent xformedBy(Transform2D xform, Vector2 local_ofs)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

device
long device [@property getter]
long device [@property setter]

The event's device ID.

Static functions

_new
InputEvent _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