mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 01:06:11 +00:00
Add MKeys profile support
This commit is contained in:
parent
be7d367079
commit
148bd480df
@ -174,6 +174,10 @@ int parseProfile(LedKeyboard &kbd, std::istream &stream) {
|
|||||||
if (utils::parseKey(args[1], key))
|
if (utils::parseKey(args[1], key))
|
||||||
if (utils::parseColor(args[2], color))
|
if (utils::parseColor(args[2], color))
|
||||||
keys.push_back({ key, color });
|
keys.push_back({ key, color });
|
||||||
|
} else if (args[0] == "mr" && args.size() > 1) {
|
||||||
|
if (setMRKey(kbd, args[1], false) == 1) retval = 1;
|
||||||
|
} else if (args[0] == "mn" && args.size() > 1) {
|
||||||
|
if (setMNKey(kbd, args[1], false) == 1) retval = 1;
|
||||||
} else if (args[0] == "fx" && args.size() > 4) {
|
} else if (args[0] == "fx" && args.size() > 4) {
|
||||||
if (setFX(kbd, args[1], args[2], args[3], args[4]) == 1) retval = 1;
|
if (setFX(kbd, args[1], args[2], args[3], args[4]) == 1) retval = 1;
|
||||||
} else if (args[0] == "fx" && args.size() > 3) {
|
} else if (args[0] == "fx" && args.size() > 3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user