Single instance

This commit is contained in:
2026-10-18 16:59:51 +02:00
parent 798708b3e7
commit 74503c27dd
19 changed files with 670 additions and 99 deletions

View File

@@ -17,6 +17,8 @@ const char* action_type_token(ActionType type) {
return "key";
case ActionType::Command:
return "command";
case ActionType::KeyHold:
return "keyhold";
case ActionType::Disabled:
default:
return "disabled";
@@ -30,6 +32,9 @@ ActionType action_type_from_token(const std::string& token) {
if (token == "command") {
return ActionType::Command;
}
if (token == "keyhold") {
return ActionType::KeyHold;
}
return ActionType::Disabled;
}