API Reference › Input › Input.touch_x
method

Input.touch_x

Input.touch_x(index) -> int

The x position of touch point index (0..7). Pair with Input.touch_y and Input.touch_count for multi-touch.

Example

program Demo {
  entry {
    Input.set_touch(0, 100, 200, true)
    print(Input.touch_x(0))
  }
}
← All symbols