mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 13:03:52 +00:00
parent
afbd589348
commit
50a228394f
@ -576,11 +576,14 @@ void _glfwDetectJoystickConnectionWin32(void)
|
||||
void _glfwDetectJoystickDisconnectionWin32(void)
|
||||
{
|
||||
int jid;
|
||||
_GLFWjoystick* js;
|
||||
|
||||
for (jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++)
|
||||
{
|
||||
if (_glfw.joysticks[jid].present)
|
||||
_glfwPlatformPollJoystick(jid, _GLFW_POLL_PRESENCE);
|
||||
js = &_glfw.joysticks[jid];
|
||||
|
||||
if (js->present)
|
||||
_glfwPlatformPollJoystick(js, _GLFW_POLL_PRESENCE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user