Closed Bug 1617023 Opened 5 years ago Closed 5 years ago

Implement Gamepad for XRInputSource

Categories

(Core :: WebVR, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: daoshengmu, Assigned: daoshengmu)

References

()

Details

Attachments

(3 files, 5 obsolete files)

We need to do some additional works in Gamepad module for motion controllers that are specific for XR devices.

  • Check controller button/axis mapping if they match to WebXR input profiles properly.
  • Make sure gamepad instance is not added to navigator when webxr is enabled.
  • Gamepad id attribute must be "".
  • Gamepad index attribute must be -1.
  • Gamepad connected attribute must be true until its XRInputSource is removed or the XRSession is ended.
  • If an axis reported by the gamepad's axes array represents an axis of a touchpad, the value MUST be 0 when the associated GamepadButton's touched is false.
Blocks: 1609202
Attachment #9129006 - Attachment is obsolete: true

TargetRaySpace, GripSpace, and controller states in XRInputSource work properly now. I just have more thing to fix regarding to the orientation of XRSpace.

(In reply to Daosheng Mu[:daoshengmu] from comment #5)

TargetRaySpace, GripSpace, and controller states in XRInputSource work properly now. I just have more thing to fix regarding to the orientation of XRSpace.

I have confirmed OpenVR and Oculus controllers work as my expectation, and they are ready to review.

MozReview-Commit-ID: 9gHLqyYqjnE

MozReview-Commit-ID: 1tQEuvkwbtQ

Depends on D67431

MozReview-Commit-ID: KGAUnnlivzz

Depends on D67432

Attachment #9129008 - Attachment is obsolete: true
Attachment #9129009 - Attachment is obsolete: true
Attachment #9129334 - Attachment is obsolete: true
Attachment #9138211 - Attachment is obsolete: true
Pushed by dmu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1ebf382e7133 Part 1: Integrating Gamepad with XRInputSource. r=kip https://hg.mozilla.org/integration/autoland/rev/f54ac49bbc0a Part 2: OpenVR/Oculus controller XR mode. r=kip https://hg.mozilla.org/integration/autoland/rev/546b90fd1689 Part 3: Implement XR controller selection and squeeze actions. r=kip
Pushed by dmu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3a6247b39244 Part 1: Integrating Gamepad with XRInputSource. r=kip https://hg.mozilla.org/integration/autoland/rev/8cadc6705690 Part 2: OpenVR/Oculus controller XR mode. r=kip https://hg.mozilla.org/integration/autoland/rev/2ff0eabe84e9 Part 3: Implement XR controller selection and squeeze actions. r=kip
Backout by shindli@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/51179c777996 Backed out 3 changesets for causing mass bustages CLOSED TREE
Flags: needinfo?(dmu)
Pushed by dmu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/67c3dd4a36d5 Part 1: Integrating Gamepad with XRInputSource. r=kip https://hg.mozilla.org/integration/autoland/rev/a98e10887bc0 Part 2: OpenVR/Oculus controller XR mode. r=kip https://hg.mozilla.org/integration/autoland/rev/8fb585fedcbb Part 3: Implement XR controller selection and squeeze actions. r=kip
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: