UNPKG

@threlte/xr

Version:

Tools to more easily create VR and AR experiences with Threlte

13 lines (12 loc) 646 B
import type { Object3D } from 'three'; import type { ControlsContext, HandContext } from './types'; export declare const getHandContext: (hand: "left" | "right") => HandContext; export declare const setHandContext: (hand: "left" | "right", context: HandContext) => void; export declare const getControlsContext: () => ControlsContext; export declare const setControlsContext: (context: ControlsContext) => void; interface InternalContext { dispatchers: WeakMap<Object3D, Record<string, (arg: unknown) => void>>; } export declare const getInternalContext: () => InternalContext; export declare const setInternalContext: () => void; export {};