Interface XRGestureEvent

interface XRGestureEvent {
    buttons:
        | "Y"
        | "X"
        | "A"
        | "B"
        | "RightTrigger"
        | "RightPinch"
        | "LeftTrigger"
        | "LeftPinch"
        | "LeftAxesLeft"
        | "LeftAxesRight"
        | "LeftAxesUp"
        | "LeftAxesDown"
        | "RightAxesLeft"
        | "RightAxesRight"
        | "RightAxesUp"
        | "RightAxesDown";
    controllers: {
        raycaster: {
            leftRay: Raycaster;
            rightRay: Raycaster;
        };
    };
    defaultPrevented: boolean;
    isFinal: boolean;
    isFirst: boolean;
    machineType: "Pico" | "Oculus";
    session: XRSession;
    timeStamp: number;
    type: string;
    preventDefault(): void;
}

Hierarchy (view full)

Properties

buttons:
    | "Y"
    | "X"
    | "A"
    | "B"
    | "RightTrigger"
    | "RightPinch"
    | "LeftTrigger"
    | "LeftPinch"
    | "LeftAxesLeft"
    | "LeftAxesRight"
    | "LeftAxesUp"
    | "LeftAxesDown"
    | "RightAxesLeft"
    | "RightAxesRight"
    | "RightAxesUp"
    | "RightAxesDown"
controllers: {
    raycaster: {
        leftRay: Raycaster;
        rightRay: Raycaster;
    };
}
defaultPrevented: boolean
isFinal: boolean
isFirst: boolean
machineType: "Pico" | "Oculus"
session: XRSession
timeStamp: number
type: string

Methods