API Reference › Input › Input.touch_count
method

Input.touch_count

Input.touch_count() -> int

Returns how many touch points are currently active (0..8). Iterate them with Input.touch_x / Input.touch_y.

Example

program Demo {
  entry {
    Input.set_touch(0, 10, 20, true)
    Input.set_touch(1, 30, 40, true)
    print(Input.touch_count())
  }
}
← All symbols