Closed Bug 1284984 Opened 8 years ago Closed 7 years ago

[webvr] Add Gamepad.displayID

Categories

(Core :: WebVR, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1375816
Tracking Status
firefox50 --- affected

People

(Reporter: kip, Assigned: kip)

References

()

Details

(Keywords: feature, Whiteboard: [gfx-noted][webvr])

Attachments

(1 file)

No description provided.
The WebVR 1.0 spec defines an association between gamepads enumerated by the Gamepad API and a VRDisplay enumerated by the WebVR API. This is done with a new gamepad attribute, displayID, which matches the value of a corresponding VRDisplay's displayID attribute. NOTE: There is likely to be changes to the spec, affecting the value of displayID for gamepads not associated with a VRDisplay.
The patch for this bug has been split out from Bug 1250244's "part 7" patch.
We will hold off on committing this, and land the rest of WebVR 1.0 (Bug 1250244) separately. Note that if the non-associated gamepad's are defined to have a value of "undefined" for gamepad.displayID, this patch will not be necessary and no changes to gamepad API will be required until we support HTC Vive or Oculus Touch controls.
Keywords: feature
Whiteboard: [gfx-noted]
Whiteboard: [gfx-noted] → [gfx-noted][webvr]
Component: Graphics → WebVR
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: