PokéRogue
    Preparing search index...

    Type Alias Input

    Determines the input support of the browser running this Phaser Game instance. These values are read-only and populated during the boot sequence of the game. They are then referenced by internal game systems and are available for you to access via this.sys.game.device.input from within any Scene.

    type Input = {
        gamepads: boolean;
        mspointer: boolean;
        touch: boolean;
        wheelEvent: string | null;
    }
    Index
    gamepads: boolean

    Whether the Gamepad API (navigator.getGamepads) is available in this browser, allowing gamepad input to be read.

    mspointer: boolean

    Whether the Microsoft Pointer API (navigator.msPointerEnabled or navigator.pointerEnabled) is available, used for pointer input on older IE/Edge browsers.

    touch: boolean

    Whether touch input is supported, detected via the ontouchstart event or navigator.maxTouchPoints.

    wheelEvent: string | null

    The most modern wheel/scroll event type supported by the browser: 'wheel' (DOM3), 'mousewheel' (legacy Chrome/IE/Safari), or 'DOMMouseScroll' (legacy Firefox). null if no wheel event is supported.