Skip to content

Added An "Exit" Button to the Main Menu for Desktop Platforms - #2544

Open
fakecoder-git wants to merge 3 commits into
flyinghead:masterfrom
fakecoder-git:feature/exit-button
Open

fakecoder-git wants to merge 3 commits into
flyinghead:masterfrom
fakecoder-git:feature/exit-button

Conversation

@fakecoder-git

Copy link
Copy Markdown

Description

This Pull Request adds an Exit button to the top-right corner of the main menu (to the right of the Settings button) for desktop platforms, such as Windows and Linux.

Context and Motivation

Currently, only the Switch version displays an Exit button on the main menu. However, in practical use cases, such as dedicated retro gaming consoles running Flycast standalone version on Linux or Windows in a TV/cabinet setup, players often rely strictly on gamepads without a keyboard or mouse attached. For these users, closing the emulator through the GUI is currently inconvenient or impossible without external peripherals.

This modification improves accessibility for gamepad-only setups by providing a straightforward way to exit the emulator directly from the main menu.

Changes Made

  • Added a functional Exit button next to the Settings button on the main menu.
  • The button functionality behaves identically to the existing Switch one.
  • Platform Filtering: This buttion is explicitly enabled for desktop platforms, such as Windows and Linux, while being excluded from Android, iOS, and UWP.
  • The existing Switch implementation and its layout remain completely untouched.

Verification & Testing

  • Successfully compiled and verified functionality on both Windows and Linux.
  • The button is correctly rendered, can be navigated by gamepad, and closes the emulator safely.

@MrWrightyLC

MrWrightyLC commented Oct 17, 2026 •

Copy link
Copy Markdown

Why not UWP? Currently, users have to press Guide button > scroll down > press Start > quit
This feature would be useful for Xbox users.

@fakecoder-git

Copy link
Copy Markdown
Author

Why not UWP? Currently, users have to press Guide button > scroll down > press Start > quit This feature would be useful for Xbox users.

I have just concentrated on the desktop platform before. Now, the latest commit adds an Exit button for UWP (only excluding Android and iPhone iOS), but I don't have the test environment of this platform.
At the same time, I use the layout of dev branch, which adds Filter text bar for all platforms, but swap the position of the Exit button and the Settings button to keep the Exit button in the top-right corner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants