1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 09:16:11 +00:00

Remove multimedia keys for g910-spark and adjust gkeys buffer

This commit is contained in:
MatMoul 2016-11-28 21:19:41 +01:00
parent f29e47da92
commit e684cbf296

View File

@ -530,7 +530,7 @@ bool Keyboard::populateAddressGroupInternal(KeyAddressGroup addressGroup, unsign
break;
}
break;
case KeyboardProtocol::spark:
case KeyboardProtocol::spark: // gkeys and mkeys seem not changeable
switch (addressGroup) {
case KeyAddressGroup::logo:
data[0] = 0x11; // Base address
@ -552,16 +552,6 @@ bool Keyboard::populateAddressGroupInternal(KeyAddressGroup addressGroup, unsign
data[6] = 0x00; // Base address
data[7] = 0x05; // Base address
break;
case KeyAddressGroup::multimedia: // Not tested
data[0] = 0x12; // Base address
data[1] = 0xff; // Base address
data[2] = 0x0c; // Base address
data[3] = 0x3a; // Base address
data[4] = 0x00; // Base address
data[5] = 0x02; // Base address
data[6] = 0x00; // Base address
data[7] = 0x05; // Base address
break;
case KeyAddressGroup::keys:
data[0] = 0x12; // Base address
data[1] = 0xff; // Base address
@ -695,7 +685,7 @@ bool Keyboard::setKeys(KeyValue keyValue[], int keyValueCount) {
int multimediaCount = 0;
KeyValue keys[200];
int keysCount = 0;
KeyValue gkeys[200];
KeyValue gkeys[25];
int gkeysCount = 0;
for (int i = 0; i < keyValueCount; i++) {