mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 01:06:11 +00:00
Issue 152: Ignore "multimedia" key group for g410, g513, and gpro.
These keyboards lack dedicated multimedia keys.
This commit is contained in:
parent
3179933a39
commit
a4152d8a97
@ -861,9 +861,22 @@ LedKeyboard::byte_buffer_t LedKeyboard::getKeyGroupAddress(LedKeyboard::KeyAddre
|
|||||||
return {}; // Device doesn't support per-key setting
|
return {}; // Device doesn't support per-key setting
|
||||||
case KeyboardModel::g410:
|
case KeyboardModel::g410:
|
||||||
case KeyboardModel::g513:
|
case KeyboardModel::g513:
|
||||||
|
case KeyboardModel::gpro:
|
||||||
|
switch (keyAddressGroup) {
|
||||||
|
case LedKeyboard::KeyAddressGroup::logo:
|
||||||
|
return { 0x11, 0xff, 0x0c, 0x3a, 0x00, 0x10, 0x00, 0x01 };
|
||||||
|
case LedKeyboard::KeyAddressGroup::indicators:
|
||||||
|
return { 0x12, 0xff, 0x0c, 0x3a, 0x00, 0x40, 0x00, 0x05 };
|
||||||
|
case LedKeyboard::KeyAddressGroup::gkeys:
|
||||||
|
return {};
|
||||||
|
case LedKeyboard::KeyAddressGroup::multimedia:
|
||||||
|
return {};
|
||||||
|
case LedKeyboard::KeyAddressGroup::keys:
|
||||||
|
return { 0x12, 0xff, 0x0c, 0x3a, 0x00, 0x01, 0x00, 0x0e };
|
||||||
|
}
|
||||||
|
break;
|
||||||
case KeyboardModel::g610:
|
case KeyboardModel::g610:
|
||||||
case KeyboardModel::g810:
|
case KeyboardModel::g810:
|
||||||
case KeyboardModel::gpro:
|
|
||||||
switch (keyAddressGroup) {
|
switch (keyAddressGroup) {
|
||||||
case LedKeyboard::KeyAddressGroup::logo:
|
case LedKeyboard::KeyAddressGroup::logo:
|
||||||
return { 0x11, 0xff, 0x0c, 0x3a, 0x00, 0x10, 0x00, 0x01 };
|
return { 0x11, 0xff, 0x0c, 0x3a, 0x00, 0x10, 0x00, 0x01 };
|
||||||
|
@ -32,7 +32,7 @@ namespace help {
|
|||||||
g610 = intensity | commit | logo1 | numpad | multimedia | setall | setgroup | setkey | setindicators | poweronfx,
|
g610 = intensity | commit | logo1 | numpad | multimedia | setall | setgroup | setkey | setindicators | poweronfx,
|
||||||
g810 = rgb | commit | logo1 | numpad | multimedia | setall | setgroup | setkey | setindicators | poweronfx,
|
g810 = rgb | commit | logo1 | numpad | multimedia | setall | setgroup | setkey | setindicators | poweronfx,
|
||||||
g910 = rgb | commit | logo1 | logo2 | numpad | multimedia | gkeys | setall | setgroup | setkey | setindicators | poweronfx,
|
g910 = rgb | commit | logo1 | logo2 | numpad | multimedia | gkeys | setall | setgroup | setkey | setindicators | poweronfx,
|
||||||
gpro = rgb | commit | logo1 | multimedia | setall | setgroup | setkey | setindicators | poweronfx
|
gpro = rgb | commit | logo1 | setall | setgroup | setkey | setindicators | poweronfx
|
||||||
};
|
};
|
||||||
inline KeyboardFeatures operator|(KeyboardFeatures a, KeyboardFeatures b);
|
inline KeyboardFeatures operator|(KeyboardFeatures a, KeyboardFeatures b);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user