useXRInputSourceEvent
useXRInputSourceEvent(
inputSource,event,fn,deps):void
Hook for listening to xr input source events
Parameters
inputSourceThe input source to listen to, or 'all' to listen to all input sources
undefined | XRInputSource | "all"
The event to listen to. (List of events)
"squeeze" | "selectstart" | "select" | "selectend" | "squeezestart" | "squeezeend"
(event) => void
Callback function called when the event is triggered.
depsany[]
Retriggers the binding of the event when the dependencies change.
Returns
void