trying to fix Trackball mouse barriers (#1079), but mouse becomes sluggish now.

This commit is contained in:
thrust26 2025-05-31 10:47:43 +02:00
parent 644dc07604
commit df3c9838b8
2 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,8 @@ EventHandlerSDL::EventHandlerSDL(OSystem& osystem)
#endif
SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1");
//SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE, "1");
//SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_CENTER, "0");
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -524,6 +524,8 @@ void FBBackendSDL::grabMouse(bool grab)
ASSERT_MAIN_THREAD;
SDL_SetWindowMouseGrab(myWindow, grab);
SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE, grab ? "1" : "0");
SDL_SetWindowRelativeMouseMode(myWindow, grab);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -