Explorar o código

Xbox One Right Stick Axes Fix

Browser now properly report right stick as 2 and 3 instead of 3 and 4
MackeyK24 %!s(int64=8) %!d(string=hai) anos
pai
achega
0b1f85c340
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;
         }