Forráskód Böngészése

Xbox One Right Stick Axes Fix

Browser now properly report right stick as 2 and 3 instead of 3 and 4
MackeyK24 8 éve
szülő
commit
0b1f85c340
1 módosított fájl, 1 hozzáadás és 1 törlés
  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;
         }