提交 85117979 编写于 作者: F Fernando Serrano

Include handedness on the hands events

上级 99809a90
...@@ -174,6 +174,7 @@ Object.assign( WebXRController.prototype, { ...@@ -174,6 +174,7 @@ Object.assign( WebXRController.prototype, {
hand.inputState.pinching = false; hand.inputState.pinching = false;
this.dispatchEvent( { this.dispatchEvent( {
type: "pinchend", type: "pinchend",
handedness: inputSource.handedness,
target: this target: this
} ); } );
...@@ -182,6 +183,7 @@ Object.assign( WebXRController.prototype, { ...@@ -182,6 +183,7 @@ Object.assign( WebXRController.prototype, {
hand.inputState.pinching = true; hand.inputState.pinching = true;
this.dispatchEvent( { this.dispatchEvent( {
type: "pinchstart", type: "pinchstart",
handedness: inputSource.handedness,
target: this target: this
} ); } );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册