I wanted to know what the best way to achieve a firstperson styled "mouselook" in lwjgl3 would be.
Originally, I tried using java.awt's MouseInfo class to get information about the mouse position on the screen. I'd then use glfwSetCursorPos to reset the cursor position. However, since you cannot use java.awt on mac I needed to find another way.
I tried using glfwGetCursorPos() and glfwSetCursorPos() to do mouselook (in the whileloop of the game), However, this also does not work on mac, because glfwSetCursorPos() freezes the mouse for 200-300 ms.
Solved Thanks for Kappa. Here's some documentation on how to do this