Lines Matching refs:ypos
375 void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos)
380 assert(ypos > -FLT_MAX);
381 assert(ypos < FLT_MAX);
383 if (window->virtualCursorPosX == xpos && window->virtualCursorPosY == ypos)
387 window->virtualCursorPosY = ypos;
390 window->callbacks.cursorPos((GLFWwindow*) window, xpos, ypos);
791 GLFWAPI void glfwGetCursorPos(GLFWwindow* handle, double* xpos, double* ypos)
795 if (ypos)
796 *ypos = 0;
807 if (ypos)
808 *ypos = window->virtualCursorPosY;
811 _glfw.platform.getCursorPos(window, xpos, ypos);
814 GLFWAPI void glfwSetCursorPos(GLFWwindow* handle, double xpos, double ypos)
822 ypos != ypos || ypos < -DBL_MAX || ypos > DBL_MAX)
826 xpos, ypos);
837 window->virtualCursorPosY = ypos;
842 _glfw.platform.setCursorPos(window, xpos, ypos);