I currently am making a game with a FPS type interface. Mouse.setGrabbed(true)
and i'm trying to use that but now Mouse.getDX()
and Mouse.getDY()
does not work anymore and return 0. How can I get the values while the mouse is grabbed?
According to the LWJGL 2 documentation, when grab is true, getX()
and getY()
will return the delta coordinate values for the mouse.
Source: http://legacy.lwjgl.org/javadoc/org/lwjgl/input/Mouse.html#setGrabbed(boolean)