Search


Search something to see results

GamepadManagerInterface

interface GamepadManagerInterface {
    getGamepad(gamepadIndex: number): void | GamepadInterface;
    updateGamepads(): void;
    on<Type extends keyof Events>(
        event: Type,
        callback: (args: Events[Type]) => void,
    ): this;
    once<Type extends keyof Events>(
        event: Type,
        callback: (args: Events[Type]) => void,
    ): this;
    off<Type extends keyof Events>(
        event: Type,
        callback: (args: Events[Type]) => void,
    ): this;
}

Implemented by

Index

Methods

Methods

Parameters

  • gamepadIndex: number

Returns void | GamepadInterface

Type Parameters

Parameters

Returns this

Type Parameters

Parameters

Returns this

Type Parameters

Parameters

Returns this