Fix parameter increase/decrease directions
This commit is contained in:
parent
1eefffcbd6
commit
5121dcb74f
|
@ -78,19 +78,19 @@ void VehicleConfigViewBase::handleKeyEvent(uint8_t key)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(106 == key)
|
if(107 == key)
|
||||||
{
|
{
|
||||||
//DecreaseParam
|
//DecreaseParam
|
||||||
//When hardware button 106 clicked call virtual function
|
//When hardware button 107 clicked call virtual function
|
||||||
//Call decParam
|
//Call decParam
|
||||||
decParam();
|
decParam();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(107 == key)
|
if(106 == key)
|
||||||
{
|
{
|
||||||
//IncreaseParam
|
//IncreaseParam
|
||||||
//When hardware button 107 clicked call virtual function
|
//When hardware button 106 clicked call virtual function
|
||||||
//Call incParam
|
//Call incParam
|
||||||
incParam();
|
incParam();
|
||||||
|
|
||||||
|
|
|
@ -1185,7 +1185,7 @@
|
||||||
"InteractionName": "DecreaseParam",
|
"InteractionName": "DecreaseParam",
|
||||||
"Trigger": {
|
"Trigger": {
|
||||||
"Type": "TriggerPhysicalButtonClicked",
|
"Type": "TriggerPhysicalButtonClicked",
|
||||||
"ButtonKey": 106
|
"ButtonKey": 107
|
||||||
},
|
},
|
||||||
"Action": {
|
"Action": {
|
||||||
"Type": "ActionCustom",
|
"Type": "ActionCustom",
|
||||||
|
@ -1196,7 +1196,7 @@
|
||||||
"InteractionName": "IncreaseParam",
|
"InteractionName": "IncreaseParam",
|
||||||
"Trigger": {
|
"Trigger": {
|
||||||
"Type": "TriggerPhysicalButtonClicked",
|
"Type": "TriggerPhysicalButtonClicked",
|
||||||
"ButtonKey": 107
|
"ButtonKey": 106
|
||||||
},
|
},
|
||||||
"Action": {
|
"Action": {
|
||||||
"Type": "ActionCustom",
|
"Type": "ActionCustom",
|
||||||
|
|
Loading…
Reference in New Issue