mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Merge a9be9bc5fc
into f4c5e6568e
This commit is contained in:
commit
dd82e3af26
@ -322,7 +322,7 @@ static void matchCallback(void* context,
|
|||||||
|
|
||||||
js->axes = calloc(CFArrayGetCount(js->axisElements), sizeof(float));
|
js->axes = calloc(CFArrayGetCount(js->axisElements), sizeof(float));
|
||||||
js->buttons = calloc(CFArrayGetCount(js->buttonElements) +
|
js->buttons = calloc(CFArrayGetCount(js->buttonElements) +
|
||||||
CFArrayGetCount(js->hatElements) * 4, 1);
|
CFArrayGetCount(js->hatElements) * 4, sizeof(unsigned char));
|
||||||
|
|
||||||
_glfwInputJoystickChange(jid, GLFW_CONNECTED);
|
_glfwInputJoystickChange(jid, GLFW_CONNECTED);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user