Win32: Fix XInput button bit mask array size

This commit is contained in:
Camilla Löwy 2017-06-28 20:55:34 +02:00
parent 9610d68f19
commit 9bb5e880ae

View File

@ -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,