getTouchPosition function

Vector2 getTouchPosition(
  1. int index
)

Get touch position XY for a touch point index (relative to screen size).

Implementation

Vector2 getTouchPosition(int index) {
  return Vector2.fromRef(library.GetTouchPosition(index));
}