Type Alias AbstractGamepadCameraControls

AbstractGamepadCameraControls: {
    events: typeof Events;
    state: XboxGamepadParams;
    getGamepadIndex(): null | number;
    getGamepads(): readonly Gamepad[];
    hasGamepad(): boolean;
    setGamepadIndex(index: number): void;
}

Interface representing the controls for a gamepad camera.

Type declaration

  • events: typeof Events

    The events associated with the gamepad controls.

  • state: XboxGamepadParams

    The parameters for the gamepad controls.

  • getGamepadIndex:function
    • Retrieves the index of the active gamepad.

      Returns null | number

  • getGamepads:function
    • Retrieves a list of connected gamepads.

      Returns readonly Gamepad[]

      An array of connected gamepads.

  • hasGamepad:function
    • Checks if a gamepad is connected.

      Returns boolean

      true if a gamepad is connected, otherwise false.

  • setGamepadIndex:function
    • Sets the index of the gamepad to be used.

      Parameters

      • index: number

      Returns void