Skip to main content

Module pads

Module pads 

Source
Expand description

Controllers (ticket 0219, game ADR-0034): reads every connected pad’s raw state each frame, with gilrs on native and the browser’s Gamepad API (through crates/cli/web/gamepad.js) on web, and hands it to shuyi-ui’s Pads, which holds all the rules (sticks as directions, the Switch-style swap, several pads as one). Like keys.rs, this only translates, and ignores the pads while the window has no focus (pad_events).

Structs§

PadInput
Every connected controller, polled once per frame.