I’m using latest SDL3 on macOS (both latest on an M1 Pro and also on an older Intel iMac). Both see the same issue.
I’m using
SDL_SetWindowRelativeMouseMode( SDL_window, **true** );
SDL_SetWindowMouseGrab( SDL_window, **true** );
to initialise this and then:
while( SDL_PollEvent( &e ) )
{
switch( e.type ) {
case SDL_EVENT_MOUSE_MOTION:
if( e.motion.xrel != 0.0 && e.motion.yrel != 0.0) {
}
break;
...
}
Now the problem is that the values for xrel and yrel are always integral and not floating point fractional numbers as they should be. If I move the mouse slowly then they are always zero and nothing happens. If I move the mouse a bit quicker then I get values such as 1.000, 2.000 etc.