Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for XRInputSource.
Developer library 6
XRHand
The **`XRHand`** interface is pair iterator (an ordered map) with the key being the hand joints and the value being an XRJointSpace. `XRHand` is returned by XRInputSource.hand. ## Instance properties - `size` - : Returns `25`, the size of the pair iterator. ## Instance methods The `XRHand` object is a pair iterator. It can directly be used in a for...of structure. `for (const joint of myHand)` is equivalen
XRInputSourceEvent
WebXR Device API The [WebXR Device API](/docs/Web/API/WebXR_Device_API)'s **`XRInputSourceEvent`** interface describes an event which has occurred on a WebXR user input device such as a hand controller, gaze tracking system, or motion tracking system. More specifically, they represent a change in the state of an XRInputSource. To learn more about handling inputs in a WebXR project, see the article [Inputs and inpu
XRInputSourceEvent: XRInputSourceEvent() constructor
WebXR Device API The **`XRInputSourceEvent()`** constructor creates and returns a new XRInputSourceEvent object describing an event (state change) which has occurred on a WebXR user input device represented by an XRInputSource. ## Syntax ```js-nolint new XRInputSourceEvent(type, options) ``` ### Parameters - `type` - : A string with the name of the event. It is case-sensitive and browsers set it to `select
XRInputSourceEvent: inputSource property
WebXR Device API The XRInputSourceEvent interface's read-only **`inputSource`** property specifies the XRInputSource which generated the input event. This information lets you handle the event appropriately given the particulars of the user input device being manipulated. ## Value An XRInputSource object identifying the source of the user input event. This event indicates an action the user has taken using a WebXR
XRInputSourcesChangeEvent
WebXR Device API The WebXR Device API interface **`XRInputSourcesChangeEvent`** is used to represent the inputsourceschange event sent to an XRSession when the set of available WebXR input controllers changes. ## Constructor - XRInputSourcesChangeEvent() - : Creates and returns a new `XRInputSourcesChangeEvent` object. The specified type must be `inputsourceschange`, which is the only event that uses this int
XRInputSourcesChangeEvent: XRInputSourcesChangeEvent() constructor
WebXR Device API The **`XRInputSourcesChangeEvent()`** constructor creates and returns a new XRInputSourcesChangeEvent object, representing an update to the list of available [WebXR](/docs/Web/API/WebXR_Device_API) input devices. You won't typically call this constructor yourself, as these events are created and sent to you by the WebXR system. ## Syntax ```js-nolint new XRInputSourcesChangeEvent(type, options) ``