提交 630201d9 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #12039 from servinlp/add-axis-to-vive-controller-thumbpad-event

Axes added to vive thumbpad event
......@@ -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 } );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册