Window.getTouchPoint

Function/Meaning

Get touch coordinates

Type
Windowclassmethod of
Syntax
getTouchPoint(index)
Arguments
index

Specifies the index of the touch coordinate array.

Return value
None (void)
Explanation

Gets the coordinate information of the specified index from the current touch coordinate array.
The number of coordinates can be obtained with the Window.touchPointCount property.
Coordinate information is returned in a dictionary that contains the following elements:

  • startX : The x coordinate value (client coordinate system) of the start coordinate of this touch
  • startY : The y coordinate value (client coordinate system) of the start coordinate of this touch
  • x : The x coordinate value (client coordinate system) of the current coordinate of this touch
  • y : The y coordinate value (client coordinate system) of the current coordinate of this touch
  • ID : The ID for identifying this touch
Reference
Window.touchPointCount