From 7ca666a0e94173e173ef578cbcdb2dba2a206e7e Mon Sep 17 00:00:00 2001 From: Toad King Date: Sat, 18 Jan 2020 12:44:57 -0600 Subject: [PATCH] fix mouse capture hotkey not working There's a normal binding for this set in your configs/`grab_mouse_toggle`, but there's a second place where it's hardcoded to check the F11 key. Because F11 is the default key, both of these codepaths will run which immediately captures and then uncaptures the mouse cursor, effectively breaking it. Tested and this fixes the behavior on Linux and Emscripten --- retroarch.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/retroarch.c b/retroarch.c index bc98ec6d2c..2efec80a59 100644 --- a/retroarch.c +++ b/retroarch.c @@ -14983,12 +14983,6 @@ static unsigned menu_event( ret = MENU_ACTION_TOGGLE; } - if (menu_keyboard_key_state[RETROK_F11]) - { - command_event(CMD_EVENT_GRAB_MOUSE_TOGGLE, NULL); - menu_keyboard_key_state[RETROK_F11] = 0; - } - /* Get pointer (mouse + touchscreen) input */ /* > If pointer input is disabled, do nothing */