Send input
game_inputSend keyboard or pointer input to a 2D game using press, release, tap, or pointer actions to automate playtesting and tuning.
Instructions
Keyboard or pointer input. press/release take a KeyboardEvent.code (e.g. Space, ArrowLeft, KeyZ). tap/pointer_down/pointer_move take logical x, y. Input takes effect on the next game_step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| code | No | For press/release. | |
| action | Yes |