Lines Matching defs:action
272 void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods)
277 assert(action == GLFW_PRESS || action == GLFW_RELEASE);
284 if (action == GLFW_RELEASE && window->keys[key] == GLFW_RELEASE)
287 if (action == GLFW_PRESS && window->keys[key] == GLFW_PRESS)
290 if (action == GLFW_RELEASE && window->stickyKeys)
293 window->keys[key] = (char) action;
296 action = GLFW_REPEAT;
303 window->callbacks.key((GLFWwindow*) window, key, scancode, action, mods);
347 void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods)
351 assert(action == GLFW_PRESS || action == GLFW_RELEASE);
362 if (action == GLFW_RELEASE && window->stickyMouseButtons)
365 window->mouseButtons[button] = (char) action;
369 window->callbacks.mouseButton((GLFWwindow*) window, button, action, mods);