Input

:= []

Gives an Input for tests. The host builds the real one.

empty : Input

An Input with no keys, no mouse movement and no gamepads. Give it to step in a test.

idle_gamepad : Gamepad

A Gamepad in slot 0 with no button down and the sticks and triggers at rest. Change the fields that a test needs: { ..Input.idle_gamepad, held: [Button.code(South)] }.