Explorar el Código

Merge pull request #16853 from fernandojsg/vivefocus

WebVRManager: Added Vive Focus controller support
Mr.doob hace 6 años
padre
commit
90e59eec32
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/renderers/webvr/WebVRManager.js

+ 1 - 0
src/renderers/webvr/WebVRManager.js

@@ -116,6 +116,7 @@ function WebVRManager( renderer ) {
 			if ( gamepad && ( gamepad.id === 'Daydream Controller' ||
 				gamepad.id === 'Gear VR Controller' || gamepad.id === 'Oculus Go Controller' ||
 				gamepad.id === 'OpenVR Gamepad' || gamepad.id.startsWith( 'Oculus Touch' ) ||
+				gamepad.id.startsWith( 'HTC Vive Focus' ) ||
 				gamepad.id.startsWith( 'Spatial Controller' ) ) ) {
 
 				if ( j === id ) return gamepad;