Lines Matching refs:_glfw
58 if (!_glfw.linux_js.js[joy].present) in openJoystickDevice()
61 if (strcmp(_glfw.linux_js.js[joy].path, path) == 0) in openJoystickDevice()
67 if (!_glfw.linux_js.js[joy].present) in openJoystickDevice()
90 js = _glfw.linux_js.js + joy; in openJoystickDevice()
137 _glfwInputJoystickChange(js - _glfw.linux_js.js, in pollJoystickEvents()
181 _glfw.linux_js.inotify = inotify_init1(IN_NONBLOCK | IN_CLOEXEC); in _glfwInitJoysticksLinux()
182 if (_glfw.linux_js.inotify == -1) in _glfwInitJoysticksLinux()
193 _glfw.linux_js.watch = inotify_add_watch(_glfw.linux_js.inotify, in _glfwInitJoysticksLinux()
196 if (_glfw.linux_js.watch == -1) in _glfwInitJoysticksLinux()
205 if (regcomp(&_glfw.linux_js.regex, "^js[0-9]\\+$", 0) != 0) in _glfwInitJoysticksLinux()
221 if (regexec(&_glfw.linux_js.regex, entry->d_name, 1, &match, 0) != 0) in _glfwInitJoysticksLinux()
240 qsort(_glfw.linux_js.js, count, sizeof(_GLFWjoystickLinux), compareJoysticks); in _glfwInitJoysticksLinux()
255 if (_glfw.linux_js.js[i].present) in _glfwTerminateJoysticksLinux()
257 close(_glfw.linux_js.js[i].fd); in _glfwTerminateJoysticksLinux()
258 free(_glfw.linux_js.js[i].axes); in _glfwTerminateJoysticksLinux()
259 free(_glfw.linux_js.js[i].buttons); in _glfwTerminateJoysticksLinux()
260 free(_glfw.linux_js.js[i].name); in _glfwTerminateJoysticksLinux()
261 free(_glfw.linux_js.js[i].path); in _glfwTerminateJoysticksLinux()
265 regfree(&_glfw.linux_js.regex); in _glfwTerminateJoysticksLinux()
267 if (_glfw.linux_js.inotify > 0) in _glfwTerminateJoysticksLinux()
269 if (_glfw.linux_js.watch > 0) in _glfwTerminateJoysticksLinux()
270 inotify_rm_watch(_glfw.linux_js.inotify, _glfw.linux_js.watch); in _glfwTerminateJoysticksLinux()
272 close(_glfw.linux_js.inotify); in _glfwTerminateJoysticksLinux()
283 const ssize_t size = read(_glfw.linux_js.inotify, buffer, sizeof(buffer)); in _glfwPollJoystickEvents()
290 if (regexec(&_glfw.linux_js.regex, e->name, 1, &match, 0) == 0) in _glfwPollJoystickEvents()
309 _GLFWjoystickLinux* js = _glfw.linux_js.js + joy; in _glfwPlatformJoystickPresent()
315 _GLFWjoystickLinux* js = _glfw.linux_js.js + joy; in _glfwPlatformGetJoystickAxes()
325 _GLFWjoystickLinux* js = _glfw.linux_js.js + joy; in _glfwPlatformGetJoystickButtons()
335 _GLFWjoystickLinux* js = _glfw.linux_js.js + joy; in _glfwPlatformGetJoystickName()