Lines Matching refs:_glfw

56     if (!_glfw.joysticksInitialized)
58 if (!_glfw.platform.initJoysticks())
60 _glfw.platform.terminateJoysticks();
65 return _glfw.joysticksInitialized = GLFW_TRUE;
74 for (i = 0; i < _glfw.mappingCount; i++)
76 if (strcmp(_glfw.mappings[i].guid, guid) == 0)
77 return _glfw.mappings + i;
242 const char* name = _glfw.platform.getMappingName();
261 _glfw.platform.updateGamepadGUID(mapping->guid);
428 if (_glfw.callbacks.joystick)
429 _glfw.callbacks.joystick((int) (js - _glfw.joysticks), event);
492 _glfw.mappings = _glfw_calloc(count, sizeof(_GLFWmapping));
496 if (parseMapping(&_glfw.mappings[_glfw.mappingCount], _glfwDefaultMappings[i]))
497 _glfw.mappingCount++;
514 if (!_glfw.joysticks[jid].allocated)
521 js = _glfw.joysticks + jid;
553 _glfw.platform.getWindowSize(window, &width, &height);
554 _glfw.platform.setCursorPos(window, width / 2.0, height / 2.0);
616 _glfw.platform.getCursorPos(window,
619 _glfw.platform.setCursorMode(window, value);
675 if (!_glfw.platform.rawMouseMotionSupported())
687 _glfw.platform.setRawMouseMotion(window, value);
704 return _glfw.platform.rawMouseMotionSupported();
726 scancode = _glfw.platform.getKeyScancode(key);
729 return _glfw.platform.getScancodeName(scancode);
742 return _glfw.platform.getKeyScancode(key);
811 _glfw.platform.getCursorPos(window, xpos, ypos);
830 if (!_glfw.platform.windowFocused(window))
842 _glfw.platform.setCursorPos(window, xpos, ypos);
862 cursor->next = _glfw.cursorListHead;
863 _glfw.cursorListHead = cursor;
865 if (!_glfw.platform.createCursor(cursor, image, xhot, yhot))
896 cursor->next = _glfw.cursorListHead;
897 _glfw.cursorListHead = cursor;
899 if (!_glfw.platform.createStandardCursor(cursor, shape))
921 for (window = _glfw.windowListHead; window; window = window->next)
928 _glfw.platform.destroyCursor(cursor);
932 _GLFWcursor** prev = &_glfw.cursorListHead;
953 _glfw.platform.setCursor(window, cursor);
1066 js = _glfw.joysticks + jid;
1070 return _glfw.platform.pollJoystick(js, _GLFW_POLL_PRESENCE);
1094 js = _glfw.joysticks + jid;
1098 if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_AXES))
1126 js = _glfw.joysticks + jid;
1130 if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_BUTTONS))
1133 if (_glfw.hints.init.hatButtons)
1162 js = _glfw.joysticks + jid;
1166 if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_BUTTONS))
1191 js = _glfw.joysticks + jid;
1195 if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_PRESENCE))
1219 js = _glfw.joysticks + jid;
1223 if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_PRESENCE))
1238 js = _glfw.joysticks + jid;
1254 js = _glfw.joysticks + jid;
1268 _GLFW_SWAP(GLFWjoystickfun, _glfw.callbacks.joystick, cbfun);
1304 _glfw.mappingCount++;
1305 _glfw.mappings =
1306 _glfw_realloc(_glfw.mappings,
1307 sizeof(_GLFWmapping) * _glfw.mappingCount);
1308 _glfw.mappings[_glfw.mappingCount - 1] = mapping;
1324 _GLFWjoystick* js = _glfw.joysticks + jid;
1350 js = _glfw.joysticks + jid;
1354 if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_PRESENCE))
1378 js = _glfw.joysticks + jid;
1382 if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_PRESENCE))
1413 js = _glfw.joysticks + jid;
1417 if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_ALL))
1482 _glfw.platform.setClipboardString(string);
1488 return _glfw.platform.getClipboardString();
1494 return (double) (_glfwPlatformGetTimerValue() - _glfw.timer.offset) /
1508 _glfw.timer.offset = _glfwPlatformGetTimerValue() -