Atlas Engine
API Referenceatlasatlas/input

AxisPacket

Axis action sample containing value-based input and motion deltas with flags identifying the available sources.

Module: atlas/input

Axis action sample containing value-based input and motion deltas with flags identifying the available sources.

Declaration

export type AxisPacket = {
        /**
         * The horizontal motion delta.
         */
        deltaX: number;
        /**
         * The vertical motion delta.
         */
        deltaY: number;
        /**
         * The X.
         */
        x: number;
        /**
         * The Y.
         */
        y: number;
        /**
         * The horizontal value-based input.
         */
        valueX: number;
        /**
         * The vertical value-based input.
         */
        valueY: number;
        /**
         * The horizontal delta-based input.
         */
        inputDeltaX: number;
        /**
         * The vertical delta-based input.
         */
        inputDeltaY: number;
        /**
         * Whether value-based input contributed to this sample.
         */
        hasValueInput: boolean;
        /**
         * Whether delta-based input contributed to this sample.
         */
        hasDeltaInput: boolean;
    };

Properties

deltaX

The horizontal motion delta.

deltaX: number;

deltaY

The vertical motion delta.

deltaY: number;

x

The X.

x: number;

y

The Y.

y: number;

valueX

The horizontal value-based input.

valueX: number;

valueY

The vertical value-based input.

valueY: number;

inputDeltaX

The horizontal delta-based input.

inputDeltaX: number;

inputDeltaY

The vertical delta-based input.

inputDeltaY: number;

hasValueInput

Whether value-based input contributed to this sample.

hasValueInput: boolean;

hasDeltaInput

Whether delta-based input contributed to this sample.

hasDeltaInput: boolean;

On this page