InputEventScreenTouch

Input event type for screen touch events. (only available on mobile devices)

Stores multi-touch press/release information. Supports touch press, touch release and index for multi-touch count and order.

Members

Aliases

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

Functions

getIndex
long getIndex()
getPosition
Vector2 getPosition()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(InputEventScreenTouch other)
opEquals
bool opEquals(typeof(null) n)
setIndex
void setIndex(long index)
setPosition
void setPosition(Vector2 position)
setPressed
void setPressed(bool pressed)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

index
long index [@property getter]
long index [@property setter]

The touch index in the case of a multi-touch event. One index = one finger.

position
Vector2 position [@property getter]
Vector2 position [@property setter]

The touch position.

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

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

Static functions

_new
InputEventScreenTouch _new()

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