From 97d65b137a2a530ca009d1625dfbcff6315feae6 Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Tue, 17 Mar 2026 18:47:54 -0700 Subject: [PATCH] overlay: "reset all" buttons for buttons/overlay/analog tabs (#578) ## Link to GitHub Issue or related Pull Request, if one exists #576 ## Description of change Add `Reset All` buttons to these tabs which clears out bindings to none / default. For keypads, introduce a special `Use Preset` button which lets users pick between numpad and top row number keys. Update UI-visible string used for vKeys, especially the numpad ones (e.g., `.` is now `Numpad .` to distinguish from the regular `.` period). Breaking change: if the user never had `P1 Keypad 00` set, the default will change from `Enter` to `Numpad -` since both enter keys trigger the same. This will affect a small number of popn/ddr players. They can just change it back. ## Testing *how was the code tested?* --- src/spice2x/cfg/api.cpp | 7 +- src/spice2x/cfg/button.cpp | 34 +++--- src/spice2x/cfg/button.h | 12 ++ src/spice2x/games/io.cpp | 3 +- src/spice2x/overlay/windows/config.cpp | 153 +++++++++++++++++++++++-- src/spice2x/overlay/windows/config.h | 4 +- 6 files changed, 185 insertions(+), 28 deletions(-) diff --git a/src/spice2x/cfg/api.cpp b/src/spice2x/cfg/api.cpp index 29ee99a..27df2bd 100644 --- a/src/spice2x/cfg/api.cpp +++ b/src/spice2x/cfg/api.cpp @@ -37,7 +37,11 @@ std::vector