Input Docs

Players Input

Input Index

Purpose

Player input maps raw devices to game players so gameplay code reads player actions instead of hardware order.

Players Input explains behavior, constraints, and practical usage so implementation decisions stay consistent across scripts and scenes.

API Source

Functions

player_get!

Enums

PlayerBinding

Constants

player index maps to input binding

Types

InputWindowScriptContext

Usage Pattern

let p0 = player_get!(ipt, 0);let binding = PlayerBinding::Gamepad { index: 0 };

Key Details

Use player bindings for keyboard, gamepad, and Joy-Con assignment.

Player helpers reduce reliance on engine-assigned gamepad indices.

Use this layer for multiplayer menus and rebinding flows.

Raw device modules remain available for low-level control.