Browse Source

Axes added to vive thumbpad event

servin nissen 8 years ago
parent
commit
f5ae8437ed
1 changed files with 1 additions and 1 deletions
  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 } );
 
 			}