浏览代码

Win32: Fix XInput button bit mask array size

Camilla Löwy 8 年之前
父节点
当前提交
9bb5e880ae
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,