menu
InputEventGamepad
import { InputEventGamepad } from "destack:input/binding";
Input gamepad event.
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: InputEventHeaderShared event header.
action: InputEventActionEvent action.
controlKind: GamepadControlKindGamepad control kind.
control: GamepadControlGamepad control selector.
hostCode: uint32Host-native control code.
hostValue: int64Host-native control value.
value: float64Normalized control value.
isPressed: booleanWhether the control is pressed.
isTouched: booleanWhether the control is touched.