mirror of
https://github.com/mborgerson/xemu.git
synced 2026-02-04 14:15:47 +00:00
ui: Support fullscreen toggle via F11
This commit is contained in:
@ -71,6 +71,10 @@ void ProcessKeyboardShortcuts(void)
|
||||
ActionScreenshot();
|
||||
}
|
||||
|
||||
if (ImGui::IsKeyPressed(ImGuiKey_F11)) {
|
||||
xemu_toggle_fullscreen();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_RENDERDOC
|
||||
if (ImGui::IsKeyPressed(ImGuiKey_F10) && nv2a_dbg_renderdoc_available()) {
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
@ -201,7 +205,7 @@ void ShowMainMenu()
|
||||
"into the window");
|
||||
ImGui::Combo("Aspect Ratio", &g_config.display.ui.aspect_ratio,
|
||||
"Native\0Auto\0""4:3\0""16:9\0");
|
||||
if (ImGui::MenuItem("Fullscreen", SHORTCUT_MENU_TEXT(Alt + F),
|
||||
if (ImGui::MenuItem("Fullscreen", "F11",
|
||||
xemu_is_fullscreen(), true)) {
|
||||
xemu_toggle_fullscreen();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user