Atlas Engine
API Referenceatlasatlas/input

MousePacket

Mouse position and motion offsets passed to interactive callbacks.

Module: atlas/input

Mouse position and motion offsets passed to interactive callbacks.

Declaration

export type MousePacket = {
        xpos: number;
        ypos: number;
        xoffset: number;
        yoffset: number;
        constrainPitch: boolean;
        firstMouse: boolean;
    };

Properties

xpos

xpos: number;

ypos

ypos: number;

xoffset

xoffset: number;

yoffset

yoffset: number;

constrainPitch

constrainPitch: boolean;

firstMouse

firstMouse: boolean;

On this page