X11 on Linux and the precision of the mouse pointer position

Hello,

I’m trying to understand the mouse pointer coordinates values.

I set the pointer input mode to “disabled” like this :
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);

Then, I enable the “raw mouse motion” like this (tested if available before) :
glfwSetInputMode(window, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE);

But when I use glfwGetCursorPos() or the pointer move callback, I always get rounded values like 1.0 or 2.0, nothing else. Is this something about X11 or am I missing something ?

Hi,

Raw mouse input doesn’t imply that the returned values will be non-integer, it refers to the input not being scaled or accelerated.