phina.js.d.ts
    Preparing search index...

    Interface GamepadManager

    interface GamepadManager {
        gamepads: { [key: number]: phina.input.Gamepad };
        addEventListener(type: string, listener: Function): this;
        clear(type: string): this;
        clearEventListener(type: string): this;
        dispatchEvent(e: { type: string }): this;
        dispatchEventByType(type: string, param: object): this;
        dispose(index: number): void;
        fire(e: { type: string }): this;
        flare(type: string, param?: object): this;
        get(index: number): phina.input.Gamepad;
        has(type: string): boolean;
        hasEventListener(type: string): boolean;
        isConnected(index: number): boolean;
        off(type: string, listener: Function): this;
        on(type: string, listener: Function): this;
        one(type: string, listener: Function): this;
        removeEventListener(type: string, listener: Function): this;
        update(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    gamepads: { [key: number]: phina.input.Gamepad }

    Methods

    • Parameters

      • index: number

      Returns void

    • Parameters

      • index: number

      Returns boolean