Daosheng Mu
ed7c303369
Bug 1358725 - Return zero after OpenVR controllers' axis is released; r=kip
...
MozReview-Commit-ID: Le4en6pUUTQ
--HG--
extra : rebase_source : 2e3a571b88b7127f684b79001336e0b897fa2a21
2017-04-24 18:52:06 +08:00
Daosheng Mu
5d5fc39364
Bug 1355648 - Part 1: Check VR controllers if losing tracking; r=kip
...
MozReview-Commit-ID: B8DaBmz1mJo
--HG--
extra : rebase_source : e0d416075a2b045d96335f9c271c014bd463e552
2017-04-21 18:14:42 +08:00
Daosheng Mu
b4fb3b9c83
Bug 1353523
- Add adjustable threshold value for VR controller trigger inputs; r=kip
...
MozReview-Commit-ID: KQMccZeE2IK
--HG--
extra : rebase_source : b8c60e59c7f9678fdb15f3dcc6770198ec35b82a
2017-04-19 13:14:13 +08:00
Daosheng Mu
5ec9ae756d
Bug 1356452 - Part 5: Detect hand changing at runtime for OpenVR controllers; r=kip
...
MozReview-Commit-ID: AR5zpxryIw6
--HG--
extra : rebase_source : c99f87a1c82b59c106bbb7e1c1c29d2478e2d353
2017-04-18 15:58:34 +08:00
Daosheng Mu
ba21000af3
Bug 1356452 - Part 2: Replace vr:: namespace with ::vr:: in OpenVR; r=kip
...
MozReview-Commit-ID: uBvQ7hBI4z
--HG--
extra : rebase_source : 306dc8eb907f0d33aa62ec05f3fe97d1f07ffc69
2017-04-18 13:04:53 +08:00
Kearwood Gilbert
c944eed13a
Bug 1356387 - Add constructor to VRHMDSensorState
...
- Also removed some now redundant calls to VRHMDSensorState::Clear()
MozReview-Commit-ID: Kkbvkn3XAP4
--HG--
extra : rebase_source : 0daecf8ad2f4baa8f3d199c65dc7c0cbeb4aceae
2017-04-17 12:15:38 -07:00
Kearwood Gilbert
8cedccb89e
Bug 1341423 - Integrate OpenVR binding library r=daoshengmu
...
MozReview-Commit-ID: GaUnfbXgh9L
--HG--
rename : gfx/vr/openvr/openvr.h => gfx/vr/openvr/headers/openvr.h
extra : rebase_source : e7a0983371c1ed381ddf431e2d5a814c510d4967
2017-02-27 16:59:30 -08:00
Kearwood Gilbert
043d85c921
Bug 1351048 - Do not load VR libraries until necessary, Oculus cleanup r=daoshengmu
...
- I have refactored the Oculus and OpenVR interfaces in gfx/vr
so that initialization of the VR libraries only happens once
a WebVR site is detected.
- The Oculus interface has been cleaned up and updated to unload the Oculus
runtime library when not in use.
- The browser can now re-connect to Oculus home if it was restarted, without
restarting the browser.
- We no longer submit a black frame at the end of VR presentation, as this
appears to be handled by the latest Oculus runtime automatically.
- As we only hold on to the Oculus runtime when needed, this should
reduce the likelihood of the GPU process being killed by the Oculus
software updater.
MozReview-Commit-ID: AyWeD4CxXLD
--HG--
extra : rebase_source : 9eae07ef30b1a7559b5fe80e6698c248a55b970e
2017-03-30 09:35:49 -04:00
Daosheng Mu
639e273a82
Bug 1336002 - Part 3: Support button touched in OpenVR and Puppet; r=kip
...
MozReview-Commit-ID: CMacSyuK3mv
--HG--
extra : rebase_source : 202edb4a20fdabf38ac9edda7b2dbe336f4ebc3b
2017-04-06 19:00:20 +08:00
Daosheng Mu
c80c10beb2
Bug 1354737 - Add assertion check for TrackedDeviceClass_GenericTracker at OpenVR HandleInput(); r=kip
...
MozReview-Commit-ID: 1nRSrkq06dr
--HG--
extra : rebase_source : 7acc97484b69097f2df5d2952473543b344366ca
2017-04-10 10:07:58 +08:00
Daosheng Mu
031d7a70be
Bug 1349895 - Vive Tracker support in OpenVR; r=kip
...
MozReview-Commit-ID: Gug4SUenhtU
--HG--
extra : rebase_source : 744bc90aa210466eb4a78b4fc63c7ddf79ea9bc2
2017-04-06 09:45:55 +08:00
Daosheng Mu
22ebee8da0
Bug 1305892 - Support Oculus Touch Haptic Feedback; r=kip
...
MozReview-Commit-ID: 7V931IAcbbx
--HG--
extra : rebase_source : 3423aa7a99b79293783cb1572f8ad3d7a257c7c7
2017-03-29 17:58:11 +08:00
Daosheng Mu
62781e3b7d
Bug 1299937 - Part 6: Handle Stop vibrating when the window defoucses; r=qdot
...
MozReview-Commit-ID: Kvd40jnSPvK
--HG--
extra : rebase_source : f9ce4c68fd07376b8e18cbab08718c49d6fed455
2017-03-07 10:17:57 +08:00
Daosheng Mu
3905da3aea
Bug 1299937 - Part 3: Implement haptic pulse for OpenVR controller; r=kip,qdot
...
MozReview-Commit-ID: TUIbJpyng4
--HG--
extra : rebase_source : e449c85d0e8f9a64a63929d1211dbca3fed8a4b6
2017-02-02 14:57:58 +08:00
Daosheng Mu
a5e10d768b
Bug 1349414 - Allow updating VR controllers at the non-presenting mode; r=kip
...
MozReview-Commit-ID: CA6YxLxySDi
--HG--
extra : rebase_source : 058b8aebdf8d13e22d2c25bdf037094ca1e52f4b
2017-03-22 09:58:06 +08:00
Daosheng Mu
4a4964014f
Bug 1346149 - Part 4: No longer need the index attribute in VRControllerHost; r=kip
...
MozReview-Commit-ID: 18KREzO4dy0
--HG--
extra : rebase_source : c1f711eaa4278d48e06ce18ccc6f2eedebb31345
2017-03-17 11:09:24 +08:00
Daosheng Mu
30464b7713
Bug 1346149 - Part 3: Adjust OpenVR controllers button and axis mapping to be more flexible; r=kip
...
MozReview-Commit-ID: 9qYzlgsWNXM
--HG--
extra : rebase_source : 52935ae64a0f35a8731017bc627fbb17ea659ffc
2017-03-16 15:57:04 +08:00
Kearwood Gilbert
5441d7848d
Bug 1345564 - Reduce sync IPC calls used by WebVR r=daoshengmu,Ehsan,kanru
...
- Eliminated the VRDisplay.GetImmediateSensorState sync call
and associated code as it is no longer needed.
MozReview-Commit-ID: 7BsCKC9EbsY
--HG--
extra : rebase_source : ae2de369d156e397d919d83b6c63b10374953bae
2017-03-03 16:21:18 -08:00
Kearwood Gilbert
5912cbf416
Bug 1293793 - Ensure VRFrameData.timestamp is a monotonically increasing value r=daoshengmu
...
- Oculus and OSVR VRFrameData.timestamp values were already returning correct
timestamps using their respective API's timestamp functions.
- OpenVR is now using timestamp values returned by the OpenVR API.
- A pseudo-random base for VRFrameData.timestamp has been implemented
in order to avoid leaking details related to how long the user has
been using their VR headset before hitting a page.
- More details on timestamp base within code comments...
MozReview-Commit-ID: 7VdiRn7l8Rb
--HG--
extra : rebase_source : cde5bc9de07cd120294ccd4ef502af030da9d03c
2017-03-03 15:17:19 -08:00
Daosheng Mu
4bcfff5f8b
Bug 1305891 - Part 2: Accept GamepadHand as the parameter when VRControllerHost constructs; r=kip
...
MozReview-Commit-ID: IYscauVw8iE
--HG--
extra : rebase_source : f11f9ec7d486f41917d687009ba1b47c933a68ba
2017-02-13 11:18:11 +08:00
Daosheng Mu
585f71980a
Bug 1305890 - Part 3: Change OpenVR and Oculus Touch gamepad id; r=kip
...
MozReview-Commit-ID: Igp2mmlI5sW
--HG--
extra : rebase_source : 3c1992f62088b18ad69a8d267f9e101a74841069
2017-02-10 15:13:44 +08:00
Daosheng Mu
ea40b47f3e
Bug 1305889 - Part 3: Enumerate Oculus Touch Controllers; r=kip
...
MozReview-Commit-ID: Ep57r4hxrRt
--HG--
extra : rebase_source : 289293f7573770e1fbc81b6a8820dfa11b124899
2017-02-06 16:13:33 +08:00
Daosheng Mu
3e9c86df65
Bug 1305889 - Part 2: Using VRControllerInfo as the parameter for AddGamepad; r=kip
...
MozReview-Commit-ID: Coye62hZxRs
--HG--
extra : rebase_source : d4166395794a55c565f37b803099682c9e075d8b
2017-02-06 16:12:52 +08:00
Daosheng Mu
6553b776c4
Bug 1336287 - Checking OpenVR system is not null before HandleInput(); r=kip
...
MozReview-Commit-ID: 6J7rO3JXrrr
--HG--
extra : rebase_source : f2c3f628d035bc47536598a144e129304e484531
2017-02-03 10:15:02 +08:00
Kearwood (Kip) Gilbert
8dc97eb398
Bug 1293333 - Part 1: Implement window.onvrdisplayactivate and window.onvrdisplaydeactivate events r=daoshengmu,Ehsan
...
MozReview-Commit-ID: 746L5KObBcg
--HG--
extra : rebase_source : 3efa9171be4ec2aa6dc12bd4651e197571cf33c6
2016-10-18 18:18:10 -04:00
Daosheng Mu
fe796ebb0a
Bug 1334977 - Checking mVRSystem is not nullptr before scannibg OpenVR controllers; r=kip
...
MozReview-Commit-ID: 6ViJqGp82t2
--HG--
extra : rebase_source : 7d9575309b6566c9f3e6d98ab13597b5c77f81b9
2017-01-30 17:37:16 +08:00
Daosheng Mu
286c9429c0
Bug 1334310 - Checking OpenVR system is initialized before scanning controllers; r=gw280
...
MozReview-Commit-ID: abv5Rb20No
--HG--
extra : rebase_source : 0325b90588effceec267e007954238f3a34fbfe4
2017-01-27 11:52:04 +08:00
Daosheng Mu
658e2d193c
Bug 1332989 - Using VRSystemManager to manage vr displays and controllers; r=kip
...
MozReview-Commit-ID: 7M1ihvCpU9g
--HG--
extra : rebase_source : aba82b0aa8ab67860418a39dd0eaa21ea18e563e
2017-01-24 17:49:11 +08:00
Daosheng Mu
370aa4a0c8
Bug 1315896 - Part 3: Remove MOZ_GAMEPAD in VR module; r=kip
...
MozReview-Commit-ID: I9vJvxgFgIh
--HG--
extra : rebase_source : 270e971ace44b00d9877a67f68f349bbd9b550c1
2016-12-08 13:01:11 -10:00
Daosheng Mu
01da49789d
Bug 1313581 - Part 3: Support hand attribute for OpenVR controllers; r=gw280
...
MozReview-Commit-ID: Ek91HPwsqVP
--HG--
extra : rebase_source : c522b718d0328c89d6e22f93d180f69f3719fa7e
2016-11-14 17:35:54 +08:00
Daosheng Mu
9f9b153369
Bug 1321505 - Clean VR controllers when nsGlobalWindow no longer uses gamepads; r=kip
...
MozReview-Commit-ID: IlAa5vDqwAE
--HG--
extra : rebase_source : 42e444083e2d43334147fb945643d12c4403af34
2016-12-01 14:16:16 +08:00
Daosheng Mu
9fb4892439
Bug 1316279 - Part 1: Fix gfxPrefs support for WebVR in out-of-process compositing; r=kip
...
MozReview-Commit-ID: 13tPgT0uDDi
--HG--
extra : rebase_source : 76de1955e928a5102d7d23b4baf2a3070309afd6
2016-11-23 09:40:54 +08:00
Daosheng Mu
9d690f01a2
Bug 1320633 - Refresh for new controllers coming in gfxVROpenVR; r=kip
...
MozReview-Commit-ID: Lpvawepnk0u
--HG--
extra : rebase_source : 76fc6937f28c21d597216a5f4ef27095fd66fc5e
2016-11-28 16:57:58 +08:00
Daosheng Mu
ab1fbc2684
Bug 1318586 - Adjust OpenVR controller button mapping to be consistency; r=kip
...
MozReview-Commit-ID: 6ODcMjqYQNP
--HG--
extra : rebase_source : 71a34032d866f373eac2396e80f3ed4ce12f963a
2016-11-18 16:36:51 +08:00
Daosheng Mu
4d84c1a5cc
Bug 1299932 - Part 3: Handle OpenVR controller position and orientation; r=kip
...
MozReview-Commit-ID: FyneJ5JfeNE
--HG--
extra : rebase_source : afd91ee94416285441397e6f51d6031c40fa5513
2016-10-24 18:09:11 +08:00
Daosheng Mu
ba525e3bc3
Bug 1310904 - Part 2: Solving non MOZ_GAMEPAD case in VR; r=gw280
...
MozReview-Commit-ID: mOoSWGQawI
--HG--
extra : rebase_source : 4171659ed182e243e88b276ec56f5d5829593d56
2016-11-04 15:53:01 +08:00
Daosheng Mu
954b7fbf40
Bug 1315636 - Hanlde OpenVR controller button release; r=gw280
...
MozReview-Commit-ID: 9ihcXugQn2r
--HG--
extra : rebase_source : 07db2d3d11fe3a42bf5a3f625f2b5f7728017ea1
2016-11-08 08:15:01 +08:00
Daosheng Mu
ebd920cbdb
Bug 1313585 - Part 2: Removing the existing gamepads before scanning VR controllers; r=gw280
...
MozReview-Commit-ID: 24a4tRoYX8f
--HG--
extra : rebase_source : fa48d7214fb2b4d1a891b201dac7c178374ac91a
2016-10-28 16:00:12 +08:00
Daosheng Mu
cdee94bb39
Bug 1299930 - Support OpenVR controller trackpads via Gamepad API; r=kip
...
MozReview-Commit-ID: 41C0rc7fZTi
--HG--
extra : rebase_source : 406409b3f035134f7dab7eddb75905618ba0256d
2016-10-22 00:01:26 +08:00
dmu@mozilla.com
86b791fca4
Bug 1311587 - Make sure OpenVR is installed before handling user inputs; r=kip
...
--HG--
extra : rebase_source : 8232206feaeedf278279edbdc2af4cd2291b5fb6
2016-10-20 04:01:04 +00:00
Daosheng Mu
4a7f6008a3
Bug 1299929 - Part 3: Handle VRController button inputs; r=kip
...
MozReview-Commit-ID: DxI0dcc4uET
--HG--
extra : rebase_source : 5214f4457fadffb9e4a81c9bb986393125a30c33
2016-10-13 14:35:13 +08:00
Daosheng Mu
b0de77c7b1
Bug 1299929 - Part 2: Add extra info for VRController; r=kip
...
MozReview-Commit-ID: 5y8X5ZPnsHb
--HG--
extra : rebase_source : 1dd7503c2b59af17f287837ba6005207369b6aca
2016-10-13 14:30:26 +08:00
Daosheng Mu
1c5ae68a31
Bug 1299928 - Part 5: Handle gamepad events in Vsync time; r=kip
...
MozReview-Commit-ID: Ndt3zajkli
--HG--
extra : rebase_source : 1e14a470ea3aede5c167f7699db0f3b8bdfdfa10
2016-10-07 17:00:45 +08:00
Daosheng Mu
e01d3ca1b4
Bug 1299928 - Part 4: Implement VRControllerManager; r=kip
...
MozReview-Commit-ID: 3bItvKV2HB
--HG--
extra : rebase_source : 2c41e08774b67c1b369bf20fec4f96597f6214ad
2016-10-07 16:58:01 +08:00
Daosheng Mu
3803722838
Bug 1299928 - Part 2: Rename VRDisplayType to VRDeviceType; r=kip
...
MozReview-Commit-ID: IZ1eJUtBeRI
--HG--
extra : rebase_source : d6510af05fe972ff5fd8072ca7ea12e276636676
2016-10-04 16:22:42 +08:00
kearwood
129f2f75a0
Bug 1186578 - [webvr] Implement OpenVR/SteamVR support,r=gw280
...
MozReview-Commit-ID: LmpcMJubrYR
--HG--
extra : rebase_source : c5d767c635bed9fa74ca94b2ce75952f20106702
2016-07-22 12:41:00 -07:00