I\'m really stuck:
I have the mainWindow and in the main game loop I do:
// poll for input glfwPollEvents(); this->controls->handleInput(windo
My solution: Do not use the callback-setter. Instead I do the following:
glfwPollEvents(); this->controls->handleInput(window, mainObj); this->controls->handleMouse(window, mainObj);
And within handleMouse I do:
GLdouble xPos, yPos; glfwGetCursorPos(window, &xPos, &yPos);