Definition
WebXR Device API defines XRInputSource
[SecureContext, Exposed=Window]
interface XRInputSource {
readonly attribute XRHandedness handedness;
readonly attribute XRTargetRayMode targetRayMode;
[SameObject] readonly attribute XRSpace targetRaySpace;
[SameObject] readonly attribute XRSpace? gripSpace;
[SameObject] readonly attribute FrozenArray<DOMString> profiles;
readonly attribute boolean skipRendering;
};
This interface is extended in the following specifications:
- WebXR Gamepads Module - Level 1
partial interface XRInputSource { [SameObject] readonly attribute Gamepad? gamepad; };
- WebXR Hand Input Module - Level 1
partial interface XRInputSource { [SameObject] readonly attribute XRHand? hand; };
Consolidated IDL (across mixin and partials)
[SecureContext, Exposed=Window]
interface XRInputSource {
readonly attribute XRHandedness handedness;
readonly attribute XRTargetRayMode targetRayMode;
[SameObject] readonly attribute XRSpace targetRaySpace;
[SameObject] readonly attribute XRSpace? gripSpace;
[SameObject] readonly attribute FrozenArray<DOMString> profiles;
readonly attribute boolean skipRendering;
[SameObject] readonly attribute Gamepad? gamepad;
[SameObject] readonly attribute XRHand? hand;
};
Methods and attributes that return objects implementing XRInputSource
Referring IDL interfaces/dictionaries
Referring specifications
- WebXR Gamepads Module - Level 1 refers to
XRInputSource
- WebXR Hand Input Module - Level 1 refers to
XRInputSource
- WebXR Hit Test Module refers to
XRInputSource