Difference between calling glfwGetCursorPos() vs callback

What is the practical application of using callback to retrieve cursor position instead of glfwGetCursorPos()?

What method should I use to calculate camera rotation, as the difference between previous and current frame’s position of the cursor?

The cursor callback can be called more than once per frame for every movement event, which could be useful for things like drawing applications.

For camera rotation, glfwGetCursorPos() is usually sufficient. This subject is a little more advanced than is easily covered in a forum reply, but there are a number of decent tutorials online you can search for, for example:


1 Like