Skip to main content

Module input

Module input 

Source
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 PDButtons bits (pd_api_sys.h; shim/shim.c checks 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 slot is: a press and a release of its button.