@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="XRInputSource")
public class XRInputSource
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
XRInputSource() |
| Modifier and Type | Method and Description |
|---|---|
XRSpace |
gripSpace()
The read-only XRInputSource property gripSpace returns an XRSpace whose native origin tracks the pose used to render virtual objects so they appear to be held in (or part of) the user's hand.
|
java.lang.String |
handedness()
The read-only XRInputSource property handedness indicates which of the user's hands the WebXR input source is associated with, or if it's not associated with a hand at all.
|
JsArray<java.lang.String> |
profiles()
The read-only XRInputSource property profiles returns an array of strings, each describing a configuration profile for the input source.
|
java.lang.String |
targetRayMode()
The read-only XRInputSource property targetRayMode indicates the method by which the target ray for the input source should be generated and how it should be presented to the user.
|
XRSpace |
targetRaySpace()
The read-only XRInputSource property targetRaySpace returns an XRSpace (typically an XRReferenceSpace) representing the position and orientation of the target ray in the virtual space.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@JsProperty(name="gripSpace") @Nullable public XRSpace gripSpace()
@JsProperty(name="handedness") @Nonnull @XRHandedness public java.lang.String handedness()
@JsProperty(name="profiles") @Nonnull public JsArray<java.lang.String> profiles()
@JsProperty(name="targetRayMode") @Nonnull @XRTargetRayMode public java.lang.String targetRayMode()
@JsProperty(name="targetRaySpace") @Nonnull public XRSpace targetRaySpace()