API Reference › Input › Input.release
method

Input.release

Input.release(key)

Releases a key previously held with Input.press. After the next Input.poll the key reads as up (and fires Input.key_released that frame).

Example

program Demo {
  entry {
    Input.press('w')
    Input.poll()
    Input.release('w')
    Input.poll()
    print(0)
  }
}
← All symbols