Skip to content

Commit 19df62e

Browse files
authored
Update win32_common.c with kiosk mode
added kiosk mode
1 parent 9bc3d5e commit 19df62e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gfx/common/win32_common.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,8 @@ static LRESULT win32_menu_loop(HWND owner, WPARAM wparam)
802802
win32_load_content_from_gui(win32_file);
803803
}
804804
break;
805+
case ID_M_KIOSK:
806+
command_event(CMD_EVENT_KIOSK, NULL);
805807
case ID_M_RESET:
806808
command_event(CMD_EVENT_RESET, NULL);
807809
break;
@@ -2028,6 +2030,8 @@ static enum msg_hash_enums menu_id_to_label_enum(unsigned int menuId)
20282030
{
20292031
case ID_M_LOAD_CONTENT:
20302032
return MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_LIST;
2033+
case ID_M_KIOSK:
2034+
return MENU_ENUM_LABEL_VALUE_INPUT_META_KIOSK;
20312035
case ID_M_RESET:
20322036
return MENU_ENUM_LABEL_VALUE_RESTART_CONTENT;
20332037
case ID_M_QUIT:
@@ -2068,6 +2072,8 @@ static unsigned int menu_id_to_meta_key(unsigned int menu_id)
20682072
{
20692073
switch (menu_id)
20702074
{
2075+
case ID_M_KIOSK:
2076+
return RARCH_KIOSK_MODE;
20712077
case ID_M_RESET:
20722078
return RARCH_RESET;
20732079
case ID_M_QUIT:

0 commit comments

Comments
 (0)