@kognifai/cogsengine
    Preparing search index...

    Interface IControlXR

    interface IControlXR {
        getRuntimeXR(): IRuntimeXR | null;
        noActiveSessions(): boolean;
        noScreenRendering(): boolean;
        onPinch(event: CustomInputSourceEventXR): void;
        onPinchStart(event: CustomInputSourceEventXR): void;
        onSelect(event: CustomInputSourceEventXR): void;
        onSelectStart(event: CustomInputSourceEventXR): void;
        onThumbstick(
            event: CustomInputSourceEventXR,
            speedMultiplier?: number,
        ): void;
        release(): void;
        shouldBlitToScreen(): boolean;
        shouldRenderToScreen(): boolean;
    }
    Index

    Methods

    • Gets the XR runtime used to blit the XR view to the on-screen canvas, or null when inactive.

      Returns IRuntimeXR | null

    • Returns true if no WebXR sessions are active

      Returns boolean

    • Returns boolean

    • Returns void

    • Returns boolean

    • Returns boolean