Skip to main content

Module input

Module input 

Source
Expand description

Game controller state: the classic 6-button pad.

Carts see input only through btn/btnp. The host maps physical keys to these buttons (arrows + Z/X by default) and ticks this state once per logical frame.

Structs§

InputState
Per-frame button state with press/repeat tracking.

Enums§

Button
Button indices, matching the ABI and the classic layout.

Constants§

BUTTON_COUNT