mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
clear out button properties when switching devices in edit dialog
This commit is contained in:
@@ -1697,6 +1697,9 @@ namespace overlay::windows {
|
|||||||
button->setDeviceIdentifier(device.name);
|
button->setDeviceIdentifier(device.name);
|
||||||
// reset controls when switching devices
|
// reset controls when switching devices
|
||||||
button->setAnalogType(ButtonAnalogType::BAT_NONE);
|
button->setAnalogType(ButtonAnalogType::BAT_NONE);
|
||||||
|
button->setDebounceUp(0.0);
|
||||||
|
button->setDebounceDown(0.0);
|
||||||
|
button->setBatThreshold(0);
|
||||||
button->setVelocityThreshold(0);
|
button->setVelocityThreshold(0);
|
||||||
button->setVKey(0);
|
button->setVKey(0);
|
||||||
button->setInvert(false);
|
button->setInvert(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user