Table of Contents

Class InputEventScreenTouch

Represents a screen touch event.

Inheritance
InputEventScreenTouch

Remarks

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

See Also

Properties

canceled

If true, the touch event has been canceled.

var canceled : bool = false

Property Value

bool

Remarks

  • void set_canceled(bool value)
  • bool is_canceled

double_tap

If true, the touch's state is a double tap.

var double_tap : bool = false

Property Value

bool

Remarks

  • void set_double_tap(bool value)
  • bool is_double_tap

index

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

var index : int = 0

Property Value

int

Remarks

  • void set_index(int value)
  • int get_index

position

The touch position in the viewport the node is in, using the coordinate system of this viewport.

var position : Vector2 = Vector2(0, 0)

Property Value

Vector2

Remarks

pressed

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

var pressed : bool = false

Property Value

bool

Remarks

  • void set_pressed(bool value)
  • bool is_pressed