I'm currently trying to use this to set up a simple crosshair cursor:
GLFWcursor* crosshairCursor = glfwCreateStandardCursor(GLFW_CROSSHAIR_CURSOR);
It works, and has saved me time doing it with OpenGL lines, but I find that the crosshair cursor is very janky, despite the program performing well otherwise, being in release mode and the camera behaving normally as well.
Does anyone have any ways to resolve this problem? Or is this a recognised issue?
EDIT: I forgot that I had this code:
glfwSetCursorPos(window, 1024 / 2, 768 / 2);
Without it, the cursor is smooth but is much harder to control since it's not being recentered each frame. Therefore, the 'janky' cursor movement is a result of the cursor being instantly snapped back to the centre of the screen. Is there a better way to handle this?