defineInputMap
defineInputMap(
actions):InputMap
Defined in: input/inputMap.ts:472
Define a named-action input map and register render/fixed evaluation systems. Returns the live map — import it and query by name from any system.
Parameters
Section titled “Parameters”actions
Section titled “actions”Record<string, ActionDef>
Returns
Section titled “Returns”Example
Section titled “Example”export const Game = defineInputMap({ Jump: Button(Key('Space'), GpButton(GamepadButton.South)) });// In a system: if (Game.pressed('Jump')) jump();
@public