XRInputSourceEventInit

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers .

XRInputSourceEventInit dictionary is used when calling the XRInputSourceEvent() constructor to provide configuration options for the newly-created XRInputSourceEvent object to take on.

特性

XRInputSourceEventInit dictionary inherits properties from the EventInit dictionary. It also offers the following:

frame
An XRFrame object representing the event frame during which the event took place. This event is not associated with the animation process, and has no viewer information contained within it.
inputSource
An XRInputSource object representing the input device from which the event is being sent.

规范

规范 状态 Comment
WebXR 设备 API
The definition of 'XRInputSourceEventInit' in that specification.
工作草案 初始定义。

浏览器兼容性

No compatibility data found. Please contribute data for "api.XRInputSourceEventInit" (depth: 1) to the MDN 兼容性数据存储库 .