mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-10 07:30:30 +00:00
disable mouse grab if hard-cursor used
This commit is contained in:
parent
4603bd305c
commit
b62e20838c
@ -2105,7 +2105,7 @@ static int SDLCALL on_sdl_event_generated(void *userdata, SDL_Event * event)
|
|||||||
SDL_Keysym const & ks = event->key.keysym;
|
SDL_Keysym const & ks = event->key.keysym;
|
||||||
switch (ks.sym) {
|
switch (ks.sym) {
|
||||||
case SDLK_F5: {
|
case SDLK_F5: {
|
||||||
if (is_hotkey_down(ks)) {
|
if (is_hotkey_down(ks) && !PrefsFindBool("hardcursor")) {
|
||||||
drv->toggle_mouse_grab();
|
drv->toggle_mouse_grab();
|
||||||
return EVENT_DROP_FROM_QUEUE;
|
return EVENT_DROP_FROM_QUEUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user