Closed microaaron closed 10 months 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.
This needs to transition to WebXR: https://developer.mozilla.org/en-US/docs/Web/API/WebVR_API
Will try my hand at transitioning things from WebVR -> WebXR this weekend
fixed with 1.8.3 .
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.