This commit is contained in:
IntellectualKitty 2017-01-29 16:18:56 +00:00 committed by GitHub
commit dd82e3af26

View File

@ -322,7 +322,7 @@ static void matchCallback(void* context,
js->axes = calloc(CFArrayGetCount(js->axisElements), sizeof(float));
js->buttons = calloc(CFArrayGetCount(js->buttonElements) +
CFArrayGetCount(js->hatElements) * 4, 1);
CFArrayGetCount(js->hatElements) * 4, sizeof(unsigned char));
_glfwInputJoystickChange(jid, GLFW_CONNECTED);
}