Configuring the X-Arcade Tankstick Red LED Button to Exit Games in RetroPie
1. Access RetroArch Settings:
- In Emulation Station, navigate to the RetroArch settings.
2. Input Settings:
- Within the RetroArch settings menu, select
Settings->Input.
3. Configure Port 1 Controls:
- Go to
Port 1 Controls.
4. Adjust Mouse Index:
- Inside Port 1 Controls, locate
Mouse Index.
5. Select Device:
- Choose
HID 1241:1111for the Mouse Index. If using the Tankstick Max, select theHID 1241:1111option corresponding to the trackball linked to the Red LED button. This is essential for proper functionality.
6. Save Configuration:
- Return to the main menu where
Inputis visible.
- Select
Configuration.
- Ensure
Save Configuration on Quitis enabled.
7. Set Up Hotkeys:
- Go back, then access
Inputand navigate toHotkeys.
- Within Hotkeys, select
Quit.
8. Map the Red LED Button:
- Press the Red LED button to assign it as the quit hotkey. If it doesn’t respond, revisit step 5 and try a different
HID 1241:1111index.
9. Enable Hotkey Button:
- Choose
Hotkey Enableand press the Red LED button again to finalize its mapping.
10. Exit Games Using the Red LED Button:
- Test the Red LED button in each actual game/core after saving; a working button in one emulator does not prove that another emulator uses the same exit mapping. For convenience, it's advised to enable the
Confirm Quitoption in the Hotkeys settings to avoid unintended game exits.
If this is not working for you, please try below method.
Custom Script Method (Special thanks to Gary from ArcadeWorkshop for creating this script)
This script will allow the red LED button to exit games. After installation, it creates a new menu item called "Red Exit Button" to enable or disable the feature.
Follow these steps:1. Connect your RetroPie to Wi-Fi, then press F4 to open the terminal.
- Download the script:
`wget` https://downloads.sourceforge.net/project/xgaming/exit_btn_setup.sh
- Make it executable:
`chmod +x exit_btn_setup.sh`
- Run the script:
./exit_btn_setup.sh
Also, ensure that port 1 control's mouse index is set to 'HID 1241:1111 for proper functionality.
Source article: <https://support.xgaming.com/support/solutions/articles/12000098733-configuring-the-x-arcade-tankstick-red-led-button-to-exit-games-in-retropie>
Red button works in console games but not arcade games
Scope: a reviewed Tankstick/RetroPie setup, not a universal Raspberry Pi 5 or custom Batocera recipe. The customer initially said the script did not work, then clarified that the red button did exit Atari, PlayStation and SNES games but not arcade games. This shows a per-emulator/configuration difference in that setup, not a dead red button or a confirmed repair for every core.
Identify the actual distribution, version and arcade emulator/core first. In the reviewed history, the system initially called "RetroPie" was later identified as a third-party Batocera build; RetroPie package-driver menus must not be promised for that image. Preserve a backup of working configurations before editing. Do not clear the whole autoconfig directory or replace a working setup merely to repeat failed advice.
For the remaining arcade exit problem, send support the actual launch/core and its configuration, plus which console games already exit correctly and the script/menu settings tried. A standalone emulator may not use RetroArch settings. The sent guide and later keyboard-mode suggestion had no confirmed arcade-red-button result. The customer retained Select+Start for arcade exit; a later staff "glad it works" reply did not confirm this red-button fix.
A later suspected lightning incident involved a different old controller, monitor and Raspberry Pi HDMI port. It was not tested or diagnosed in the history; do not convert it into a confirmed PCB failure or apply the new-controller mapping to the old one.