神岛 API 文档 - ArenaPro版
    Preparing search index...

    This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.

    MDN Reference

    interface Gamepad {
        actionA: any;
        actionB: any;
        axes: readonly number[];
        buttons: readonly GamepadButton[];
        connected: boolean;
        crouch: any;
        flyButton: any;
        flyingBackground: any;
        flyingController: any;
        id: string;
        index: number;
        joystickBackground: any;
        joystickController: any;
        jump: any;
        mapping: GamepadMappingType;
        timestamp: number;
        vibrationActuator: GamepadHapticActuator;
    }
    Index

    Properties

    actionA: any
    actionB: any
    axes: readonly number[]
    buttons: readonly GamepadButton[]
    connected: boolean
    crouch: any
    flyButton: any
    flyingBackground: any
    flyingController: any
    id: string
    index: number
    joystickBackground: any
    joystickController: any
    jump: any
    mapping: GamepadMappingType
    timestamp: number
    vibrationActuator: GamepadHapticActuator