rcade_inputs

Package Version Hex Docs

Lustre input bindings for Recurse Center’s RCade arcade cabinet. Covers joysticks/buttons and spinners, for both players.

Installation

gleam add rcade
bun add @rcade/plugin-input-classic @rcade/plugin-input-spinners

Usage

Poll all inputs on an interval:

inputs.poll(every: 50, with: Inputs)

Subscribe to discrete button presses:

inputs.on_press(with: ButtonPressed)
Search Document