x3dom / x3dom

X3DOM. A framework for integrating and manipulating X3D scenes as HTML5/DOM elements.
http://x3dom.org
Other
813 stars 271 forks source link

Navigator.getVRDisplays() is deprecated. #1230

Closed microaaron closed 10 months ago

microaaron commented 1 year ago

My game pad accidentally triggered an exception. Uncaught TypeError: navigator.getVRDisplays is not a function at x3dom.VRControllerManager._onGamePadConnected. https://github.com/x3dom/x3dom/blob/c4a27a8750f89cead2741620c836b27e8f7e43f6/src/util/VRControllerManager.js#L65 The reason is that Navigator.getVRDisplays() is deprecated. Maybe Navigator.getGamepads() is an alternative, but it is an experimental technology.

andreasplesch commented 1 year ago

This needs to transition to WebXR: https://developer.mozilla.org/en-US/docs/Web/API/WebVR_API

msub2 commented 1 year ago

Will try my hand at transitioning things from WebVR -> WebXR this weekend

andreasplesch commented 10 months ago

fixed with 1.8.3 .