clear out button properties when switching devices in edit dialog

This commit is contained in:
bicarus-dev
2026-04-22 22:48:29 -07:00
parent fb9eef904a
commit d2176fe4f0
+3
View File
@@ -1697,6 +1697,9 @@ namespace overlay::windows {
button->setDeviceIdentifier(device.name);
// reset controls when switching devices
button->setAnalogType(ButtonAnalogType::BAT_NONE);
button->setDebounceUp(0.0);
button->setDebounceDown(0.0);
button->setBatThreshold(0);
button->setVelocityThreshold(0);
button->setVKey(0);
button->setInvert(false);