Lines Matching refs:_glfw
131 if (!_glfw.joysticks[jid].connected)
133 if (strcmp(_glfw.joysticks[jid].linjs.path, path) == 0)
269 if (_glfw.linjs.inotify <= 0)
274 const ssize_t size = read(_glfw.linjs.inotify, buffer, sizeof(buffer));
283 if (regexec(&_glfw.linjs.regex, e->name, 1, &match, 0) != 0)
295 if (strcmp(_glfw.joysticks[jid].linjs.path, path) == 0)
297 closeJoystick(_glfw.joysticks + jid);
314 _glfw.linjs.inotify = inotify_init1(IN_NONBLOCK | IN_CLOEXEC);
315 if (_glfw.linjs.inotify > 0)
320 _glfw.linjs.watch = inotify_add_watch(_glfw.linjs.inotify,
327 _glfw.linjs.regexCompiled = (regcomp(&_glfw.linjs.regex, "^event[0-9]\\+$", 0) == 0);
328 if (!_glfw.linjs.regexCompiled)
345 if (regexec(&_glfw.linjs.regex, entry->d_name, 1, &match, 0) != 0)
361 qsort(_glfw.joysticks, count, sizeof(_GLFWjoystick), compareJoysticks);
369 _GLFWjoystick* js = _glfw.joysticks + jid;
374 if (_glfw.linjs.inotify > 0)
376 if (_glfw.linjs.watch > 0)
377 inotify_rm_watch(_glfw.linjs.inotify, _glfw.linjs.watch);
379 close(_glfw.linjs.inotify);
382 if (_glfw.linjs.regexCompiled)
383 regfree(&_glfw.linjs.regex);
406 _glfw.linjs.dropped = GLFW_TRUE;
409 _glfw.linjs.dropped = GLFW_FALSE;
414 if (_glfw.linjs.dropped)