Commit 3c5bd760 authored by luz's avatar luz

Joker buttons should be pre-configured for light (to match real dS terminal...

Joker buttons should be pre-configured for light (to match real dS terminal block behaviour, more important than ever now that colored TKM are being phased out)
parent c8aea55a
......@@ -71,6 +71,7 @@ ConsoleDevice::ConsoleDevice(StaticDeviceContainer *aClassContainerP, const stri
// - create one button input
ButtonBehaviourPtr b = ButtonBehaviourPtr(new ButtonBehaviour(*this));
b->setHardwareButtonConfig(0, buttonType_undefined, buttonElement_center, false, 0, false); // mode not restricted
b->setGroup(group_yellow_light); // pre-configure for light
b->setHardwareName(string_format("console key '%c'",name[0]));
addBehaviour(b);
}
......
......@@ -67,6 +67,7 @@ DigitalIODevice::DigitalIODevice(StaticDeviceContainer *aClassContainerP, const
// - create one button input
ButtonBehaviourPtr b = ButtonBehaviourPtr(new ButtonBehaviour(*this));
b->setHardwareButtonConfig(0, buttonType_undefined, buttonElement_center, false, 0, false); // mode not restricted
b->setGroup(group_yellow_light); // pre-configure for light
addBehaviour(b);
}
else if (digitalIoType==digitalio_input) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment