mirror of https://github.com/stella-emu/stella.git
trying to fix Trackball mouse barriers (#1079), but mouse becomes sluggish now.
This commit is contained in:
parent
644dc07604
commit
df3c9838b8
|
@ -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");
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
Loading…
Reference in New Issue