textmode.js / input / gamepad
gamepad
Types and interfaces for gamepad event handling
Interfaces
| Interface | Description |
|---|---|
| GamepadAxisEventData | Axis change payload emitted when an axis crosses configured thresholds. |
| GamepadButtonEventData | Button edge payload emitted when a button crosses configured thresholds. |
| GamepadConnectionEventData | Connection lifecycle payload emitted by the gamepad manager. |
| GamepadEventMap | Event map for all gamepad events emitted by the GamepadInput. |
| TextmodeGamepadButtonSnapshot | Immutable snapshot of a single gamepad button for the current frame. |
| TextmodeGamepadSnapshot | Immutable frame snapshot for a connected gamepad. |
| TextmodeGamepadStickSnapshot | Normalized two-axis stick state for standard-mapped controllers. |
| TextmodeStandardGamepadSnapshot | Semantic helpers derived from the browser's standard gamepad mapping. |
Type Aliases
| Type Alias | Description |
|---|---|
| GamepadAxisEventHandler | Gamepad axis event handler. |
| GamepadButtonEventHandler | Gamepad button event handler. |
| GamepadConnectionEventHandler | Gamepad connection event handler. |
| TextmodeStandardAxisName | Semantic axis names exposed for standard-mapped controllers. |
| TextmodeStandardButtonName | Semantic button names exposed for standard-mapped controllers. |
Variables
| Variable | Description |
|---|---|
| GAMEPAD_EVENT_NAMES | Gamepad event names supported by the shared input event API. |