feat(firmware): add a special function to trigger key lock (#7565)
This commit is contained in:
@@ -122,6 +122,8 @@ QString CustomFunctionData::funcToString(const AssignFunc func, const ModelData
|
||||
return tr("Racing Mode");
|
||||
else if (func == FuncDisableTouch)
|
||||
return tr("Disable Touch");
|
||||
else if (func == FuncDisableKeys)
|
||||
return tr("Disable Keys");
|
||||
else if (func == FuncSetScreen)
|
||||
return tr("Set Main Screen");
|
||||
else if (func == FuncDisableAudioAmp)
|
||||
@@ -491,6 +493,7 @@ bool CustomFunctionData::isParamAvailable() const
|
||||
FuncBindExternalModule,
|
||||
FuncRacingMode,
|
||||
FuncDisableTouch,
|
||||
FuncDisableKeys,
|
||||
FuncDisableAudioAmp
|
||||
};
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ enum AssignFunc {
|
||||
FuncBindExternalModule,
|
||||
FuncRacingMode,
|
||||
FuncDisableTouch,
|
||||
FuncDisableKeys,
|
||||
FuncSetScreen,
|
||||
FuncDisableAudioAmp,
|
||||
FuncRGBLed,
|
||||
|
||||
@@ -64,6 +64,7 @@ static const YamlLookupTable customFnLut = {
|
||||
{ FuncRGBLed, "RGB_LED" },
|
||||
{ FuncLCDtoVideo, "LCD_TO_VIDEO" },
|
||||
{ FuncPushCustomSwitch1, "PUSH_CUST_SWITCH" },
|
||||
{ FuncDisableKeys, "DISABLE_KEYS" },
|
||||
};
|
||||
|
||||
static const YamlLookupTable trainerLut = {
|
||||
|
||||
Reference in New Issue
Block a user