Atlas Engine
API Referenceatlas

Joystick

Joystick access using device-specific axis and button indices.

Module: atlas

Joystick access using device-specific axis and button indices.

Declaration

export class Joystick { ... }

Properties

joystickId

The runtime joystick identifier.

joystickId: number;

name

The human-readable name.

name: string;

connected

Whether the input device is currently connected.

connected: boolean;

Methods

getSingleAxisTrigger

Returns single axis trigger.

getSingleAxisTrigger(axisIndex: number): AxisTrigger;

getDualAxisTrigger

Returns dual axis trigger.

getDualAxisTrigger(axisIndexX: number, axisIndexY: number): AxisTrigger;

getButtonTrigger

Returns button trigger.

getButtonTrigger(buttonIndex: number): Trigger;

getAxisCount

Returns axis count.

getAxisCount(): number;

getButtonCount

Returns button count.

getButtonCount(): number;

On this page