@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public interface XRInputSourceEventInit
extends EventInit
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XRInputSourceEventInit.Builder
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.
|
| Modifier and Type | Method and Description |
|---|---|
static XRInputSourceEventInit.Builder |
create(XRFrame frame,
XRInputSource inputSource) |
@JsNonNull XRFrame |
frame()
The XRInputSourceEventInit dictionary's property frame specifies an XRFrame providing information about the timestamp at which the new input source event took place, as well as access to the XRFrame method getPose() which can be used to map the coordinates of any XRReferenceSpace to the space in which the event took place.
|
@JsNonNull XRInputSource |
inputSource()
The XRInputSourceEventInit dictionary's inputSource property is used when calling the XRInputSourceEvent() constructor to specify the XRInputSource from which the newly-created event is being sent.
|
void |
setFrame(@JsNonNull XRFrame frame)
The XRInputSourceEventInit dictionary's property frame specifies an XRFrame providing information about the timestamp at which the new input source event took place, as well as access to the XRFrame method getPose() which can be used to map the coordinates of any XRReferenceSpace to the space in which the event took place.
|
void |
setInputSource(@JsNonNull XRInputSource inputSource)
The XRInputSourceEventInit dictionary's inputSource property is used when calling the XRInputSourceEvent() constructor to specify the XRInputSource from which the newly-created event is being sent.
|
bubbles, cancelable, composed, create, setBubbles, setCancelable, setComposed@JsOverlay @Nonnull static XRInputSourceEventInit.Builder create(@Nonnull XRFrame frame, @Nonnull XRInputSource inputSource)
@JsProperty(name="frame") @JsNonNull XRFrame frame()
@JsProperty void setFrame(@JsNonNull XRFrame frame)
@JsProperty(name="inputSource") @JsNonNull XRInputSource inputSource()
@JsProperty void setInputSource(@JsNonNull XRInputSource inputSource)