menu

InputEventGamepad

import { InputEventGamepad } from "destack:input/binding";

Input gamepad event.

language/library/src/input/binding/event.ds:306:327
1export struct InputEventGamepad {2    kind: "gamepad";3    header: InputEventHeader;4    action: InputEventAction;5    controlKind: GamepadControlKind;6    control: GamepadControl;7    hostCode: uint32;8    hostValue: int64;9    value: float64;10    isPressed: boolean;11    isTouched: boolean;12}

Members

kind: "gamepad"

Event discriminator.

header: InputEventHeader

Shared event header.

action: InputEventAction

Event action.

controlKind: GamepadControlKind

Gamepad control kind.

control: GamepadControl

Gamepad control selector.

hostCode: uint32

Host-native control code.

hostValue: int64

Host-native control value.

value: float64

Normalized control value.

isPressed: boolean

Whether the control is pressed.

isTouched: boolean

Whether the control is touched.