Interface XrInputCallbacks
interface XrInputCallbacks {
onInputSourcesChange?: (
added: readonly XrInputSource[],
removed: readonly XrInputSource[],
) => void;
onSelect?: (input: XrInputSource) => void;
onSelectEnd?: (input: XrInputSource) => void;
onSelectStart?: (input: XrInputSource) => void;
onSqueeze?: (input: XrInputSource) => void;
onSqueezeEnd?: (input: XrInputSource) => void;
onSqueezeStart?: (input: XrInputSource) => void;
}
onInputSourcesChange?: (
added: readonly XrInputSource[],
removed: readonly XrInputSource[],
) => void;
onSelect?: (input: XrInputSource) => void;
onSelectEnd?: (input: XrInputSource) => void;
onSelectStart?: (input: XrInputSource) => void;
onSqueeze?: (input: XrInputSource) => void;
onSqueezeEnd?: (input: XrInputSource) => void;
onSqueezeStart?: (input: XrInputSource) => void;
}
Properties
Optionalon Input Sources Change
onInputSourcesChange?: (
added: readonly XrInputSource[],
removed: readonly XrInputSource[],
) => void
added: readonly XrInputSource[],
removed: readonly XrInputSource[],
) => void
Fired when the session's input-source list changes (connect/disconnect).
Optionalon Select
Fired on a completed primary action (trigger).
Optionalon Select End
Optionalon Select Start
Optionalon Squeeze
Fired on a completed squeeze action (grip).
Optional callbacks fired by the input manager during a session.