Skip to content

API Variable InputPlayer

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Variable: InputPlayer

const InputPlayer: DataComponentDef<{
  index: ScalarType<"i32">;
  joinState: ScalarType<"u8">;
  lastFamily: ScalarType<"u8">;
}>;

Defined in: src/engine/input/players.ts:26

A player. lastFamily is the DEVICE_FAMILIES index of the device that last performed an action (prompts).

Clone this wiki locally