Browse Source

Win32: Fix XInput button bit mask array size

Camilla Löwy 8 years ago
parent
commit
9bb5e880ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/win32_joystick.c

+ 1 - 1
src/win32_joystick.c

@@ -653,7 +653,7 @@ int _glfwPlatformPollJoystick(int jid, int mode)
         DWORD result;
         XINPUT_STATE xis;
         float axes[6] = { 0.f, 0.f, 0.f, 0.f, -1.f, -1.f };
-        const WORD buttons[14] =
+        const WORD buttons[10] =
         {
             XINPUT_GAMEPAD_A,
             XINPUT_GAMEPAD_B,