Explorar o código

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe %!s(int64=5) %!d(string=hai) anos
pai
achega
9335a4af26
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      src/Gamepads/Controllers/windowsMotionController.ts

+ 2 - 4
src/Gamepads/Controllers/windowsMotionController.ts

@@ -597,9 +597,7 @@ export class XRWindowsMotionController extends WindowsMotionController {
     /**
      * holds the thumbstick values (X,Y)
      */
-    public get thumbstickValues(): StickValues {
-        return this.rightStick;
-    }
+    public thumbstickValues: StickValues = { x: 0, y: 0 };
 
     /**
      * Fired when the thumbstick on this controller is clicked
@@ -659,4 +657,4 @@ PoseEnabledControllerHelper._ControllerFactories.push({
     create: (gamepadInfo) => {
         return new WindowsMotionController(gamepadInfo);
     }
-});
+});