diff --git a/src/cocoa_joystick.m b/src/cocoa_joystick.m index 0e0a20f5..67400423 100644 --- a/src/cocoa_joystick.m +++ b/src/cocoa_joystick.m @@ -276,7 +276,7 @@ static void matchCallback(void* context, for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) { - if (!_glfw.ns_js.js[joy].present && _glfw.ns_js.js[joy].deviceRef == deviceRef) + if (_glfw.ns_js.js[joy].present && _glfw.ns_js.js[joy].deviceRef == deviceRef) return; }