overlay: show warning when binding analog axis as a button for TT/knobs (#594)

## Link to GitHub Issue or related Pull Request, if one exists
#345 

## Description of change
When X or Y axis is being bound to any button labeled `TT` or `Knob` or
`VOL-`, show a warning and ask if the user really meant to do that,
encouraging them to use the Analog tab instead.
This commit is contained in:
bicarus
2026-03-26 21:17:51 -07:00
committed by GitHub
parent 889e8b43eb
commit 37693916d9
2 changed files with 63 additions and 0 deletions
+2
View File
@@ -137,6 +137,8 @@ namespace overlay::windows {
std::thread *file_picker_thread = nullptr;
bool file_picker_done = false;
std::pair<std::string, int> analog_as_button_warning_show_next_frame = { "", 0 };
void build_buttons(const std::string &name, std::vector<Button> *buttons, int min = 0, int max = -1);
void build_button(
const std::string &name,