Atlas Engine
API Referenceatlas

ControllerID

Device descriptor returned by Window.getControllers; isJoystick distinguishes joystick devices.

Module: atlas

Device descriptor returned by Window.getControllers; isJoystick distinguishes joystick devices.

Declaration

export type ControllerID = {
        /**
         * The runtime identifier for this object.
         */
        id: number;
        /**
         * The human-readable name.
         */
        name: string;
        /**
         * Whether the device exposes raw joystick axes and buttons.
         */
        isJoystick: boolean;
    };

Properties

id

The runtime identifier for this object.

id: number;

name

The human-readable name.

name: string;

isJoystick

Whether the device exposes raw joystick axes and buttons.

isJoystick: boolean;

On this page