interface GamepadDisplayJoystick {
    extraData?: any;
    highlights?: {
        down?: null | HTMLElement | SVGElement;
        left?: null | HTMLElement | SVGElement;
        right?: null | HTMLElement | SVGElement;
        up?: null | HTMLElement | SVGElement;
    };
    joystickElement: HTMLElement | SVGElement;
    movementRange: number;
    xAxisIndex?: number;
    yAxisIndex?: number;
}

Properties

extraData?: any

optional, for your own use

highlights?: {
    down?: null | HTMLElement | SVGElement;
    left?: null | HTMLElement | SVGElement;
    right?: null | HTMLElement | SVGElement;
    up?: null | HTMLElement | SVGElement;
}

use GamepadDisplayJoystick.extraData with a custom DisplayGamepadConfig.joystickDisplayFunction instead, see the custom gamepads example/demo

joystickElement: HTMLElement | SVGElement
movementRange: number
xAxisIndex?: number

Axis index (as returned by the browser gamepad api) to track for the horizontal movement of the display joystick see standardGpadAxesMap

yAxisIndex?: number

Axis index (as returned by the browser gamepad api) to track for the vertical movement of the display joystick see standardGpadAxesMap