Lines Matching defs:xpos
375 void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos)
378 assert(xpos > -FLT_MAX);
379 assert(xpos < FLT_MAX);
383 if (window->virtualCursorPosX == xpos && window->virtualCursorPosY == ypos)
386 window->virtualCursorPosX = xpos;
390 window->callbacks.cursorPos((GLFWwindow*) window, xpos, ypos);
791 GLFWAPI void glfwGetCursorPos(GLFWwindow* handle, double* xpos, double* ypos)
793 if (xpos)
794 *xpos = 0;
805 if (xpos)
806 *xpos = window->virtualCursorPosX;
811 _glfw.platform.getCursorPos(window, xpos, ypos);
814 GLFWAPI void glfwSetCursorPos(GLFWwindow* handle, double xpos, double ypos)
821 if (xpos != xpos || xpos < -DBL_MAX || xpos > DBL_MAX ||
826 xpos, ypos);
836 window->virtualCursorPosX = xpos;
842 _glfw.platform.setCursorPos(window, xpos, ypos);