I am using opengl as my window. I wanted to implement a camera class and found that the regular cursor (GLFW_CURSOR_NORMAL) was inadequate for a camera. Thus I ran the command glfwSetInputMode(window,GLFW_CURSOR,GLFW_CURSOR_DISABLE)
to have opengl recenter the mouse for me and gives back the cursor position through a call back method which I set using the method glfwSetCursorCallback(window,callbackPos)
The callback function (callbackPos) takes in a window and two doubles for x position and y positions as stated on the glfw website. http://www.glfw.org/docs/latest/input_guide.html
However, these two doubles keep growing and growing every time I shifted my mouse in one direction. My problem comes from the fact that through the whole usage of the window and movement of the mouse in one direction, the whole double will be too small to even hold the value being give since it is constantly growing. Is there a solution to this problem or this is not something that I should be worrying about?