1
0
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:
MatMoul 2017-03-11 18:11:40 +01:00
parent be7d367079
commit 148bd480df

View File

@ -174,6 +174,10 @@ int parseProfile(LedKeyboard &kbd, std::istream &stream) {
if (utils::parseKey(args[1], key))
if (utils::parseColor(args[2], 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) {
if (setFX(kbd, args[1], args[2], args[3], args[4]) == 1) retval = 1;
} else if (args[0] == "fx" && args.size() > 3) {