浏览代码

Axes added to vive thumbpad event

servin nissen 8 年之前
父节点
当前提交
f5ae8437ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/vr/ViveController.js

+ 1 - 1
examples/js/vr/ViveController.js

@@ -89,7 +89,7 @@ THREE.ViveController = function ( id ) {
 			if ( thumbpadIsPressed !== gamepad.buttons[ 0 ].pressed ) {
 
 				thumbpadIsPressed = gamepad.buttons[ 0 ].pressed;
-				scope.dispatchEvent( { type: thumbpadIsPressed ? 'thumbpaddown' : 'thumbpadup' } );
+				scope.dispatchEvent( { type: thumbpadIsPressed ? 'thumbpaddown' : 'thumbpadup', axes: axes } );
 
 			}