mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-31 00:22:31 +00:00
(Win32) Add Mouse Grab to menubar
This commit is contained in:
parent
6f5ee8be51
commit
0959fd2243
@ -322,6 +322,9 @@ static LRESULT win32_menu_loop(WPARAM wparam)
|
||||
case ID_M_FULL_SCREEN:
|
||||
cmd = RARCH_CMD_FULLSCREEN_TOGGLE;
|
||||
break;
|
||||
case ID_M_MOUSE_GRAB:
|
||||
cmd = RARCH_CMD_GRAB_MOUSE_TOGGLE;
|
||||
break;
|
||||
case ID_M_QUIT:
|
||||
do_wm_close = true;
|
||||
break;
|
||||
|
@ -27,6 +27,7 @@ BEGIN
|
||||
MENUITEM "Reset", ID_M_RESET
|
||||
MENUITEM "Menu Toggle", ID_M_MENU_TOGGLE
|
||||
MENUITEM "Pause Toggle", ID_M_PAUSE_TOGGLE
|
||||
MENUITEM "Mouse Grab Toggle", ID_M_MOUSE_GRAB
|
||||
END
|
||||
POPUP "Window"
|
||||
BEGIN
|
||||
|
@ -38,8 +38,7 @@ void menu_list_destroy(file_list_t *list)
|
||||
}
|
||||
|
||||
end:
|
||||
if (list)
|
||||
file_list_free(list);
|
||||
file_list_free(list);
|
||||
}
|
||||
|
||||
void menu_list_free(menu_list_t *menu_list)
|
||||
|
@ -23,3 +23,4 @@
|
||||
#define ID_M_WINDOW_SCALE_9X 40020
|
||||
#define ID_M_WINDOW_SCALE_10X 40021
|
||||
#define ID_M_FULL_SCREEN 40022
|
||||
#define ID_M_MOUSE_GRAB 40023
|
||||
|
Loading…
x
Reference in New Issue
Block a user