mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-05 08:10:40 -07:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user