I've started creating my own 3D game and bumped on a error that I can't find a solution for.
You can see the error in the following video:
https://www.youtube.com/watch?v=MUOrpwus7T8I just click in that video, no dragging, and the camera moves. I want the camera to stay in place if I click and only move if I click and drag ( the click and drag works already ).
I am using a class that extends GLFWCursorPosCallback and calculate deltas and get them to rotate the camera.
mouseDX += (int) xpos - mouseX;
mouseDY += (int) ypos - mouseY;
mouseX = (int) xpos;
mouseY = (int) ypos;
Any hints ?