Przeglądaj źródła

Include handedness on the hands events

Fernando Serrano 5 lat temu
rodzic
commit
85117979f8
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/renderers/webxr/WebXRController.js

+ 2 - 0
src/renderers/webxr/WebXRController.js

@@ -174,6 +174,7 @@ Object.assign( WebXRController.prototype, {
 							hand.inputState.pinching = false;
 							this.dispatchEvent( {
 								type: "pinchend",
+								handedness: inputSource.handedness,
 								target: this
 							} );
 
@@ -182,6 +183,7 @@ Object.assign( WebXRController.prototype, {
 							hand.inputState.pinching = true;
 							this.dispatchEvent( {
 								type: "pinchstart",
+								handedness: inputSource.handedness,
 								target: this
 							} );