Expand description
The Playdate’s buttons and crank as the engine’s input: the SDK’s button
bits are one controller of PadKind::Playdate, and the crank two more
of its buttons, one press a notch. It only translates, as shuyi-app’s
pads.rs does; the only file in this crate that names buttons.
A reports East and B West, as targets/playdate.ron lists them
(ADR-0008 §1).
Structs§
- PadInput
- The Playdate’s buttons and crank, read once per frame.
Constants§
- BUTTONS
- The SDK’s
PDButtonsbits (pd_api_sys.h;shim/shim.cchecks this copy against the header), each with the binding position it reports.
Functions§
- menu_
button - The button of the system menu’s item in
slot, if there is one. - menu_
press - What the player’s choice of the system menu’s item in
slotis: a press and a release of its button.