API Reference › Input › Input.set_touch
method

Input.set_touch

Input.set_touch(index, x, y, active)

Injects touch point index (0..7): active with a position, or inactive. A platform touch binding feeds the same points; until then this drives multi-touch from replays, AI, or the network.

Example

program Demo {
  entry {
    Input.set_touch(0, 64, 64, true)
    print(Input.touch_count())
  }
}
← All symbols