ui: Support fullscreen toggle via F11

This commit is contained in:
oltolm
2025-12-23 22:46:51 +01:00
committed by GitHub
parent 6ec7fa8a30
commit d0478b6154

View File

@ -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();
}