Explorar o código

Merge pull request #2874 from MackeyK24/master

Xbox One Right Stick Axes Fix
David Catuhe %!s(int64=8) %!d(string=hai) anos
pai
achega
3feaa93e21
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Gamepad/babylon.xboxGamepad.ts

+ 1 - 1
src/Gamepad/babylon.xboxGamepad.ts

@@ -56,7 +56,7 @@
         private _isXboxOnePad: boolean = false;
 
         constructor(id: string, index: number, gamepad: any, xboxOne: boolean = false) {
-            super(id, index, gamepad, 0, 1, (xboxOne ? 3 : 2), (xboxOne ? 4 : 3));
+            super(id, index, gamepad, 0, 1, 2, 3);
             this.type = Gamepad.XBOX;
             this._isXboxOnePad = xboxOne;
         }