mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 01:06:11 +00:00
Filter numpad keys for g410
This commit is contained in:
parent
d72e526ac9
commit
664f1346c7
1
TODO.md
1
TODO.md
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
## Tasks (Assigned to MatMoul but you can participate) :
|
## Tasks (Assigned to MatMoul but you can participate) :
|
||||||
* (80%) Add MKeys led control support
|
* (80%) Add MKeys led control support
|
||||||
* (70%) Avoid sending keys that not supported by a keyboard model
|
|
||||||
|
|
||||||
## Possible enhancements :
|
## Possible enhancements :
|
||||||
* Add deamon mode for custom effects
|
* Add deamon mode for custom effects
|
||||||
|
@ -310,11 +310,9 @@ bool LedKeyboard::setKeys(KeyValueArray keyValues) {
|
|||||||
if (SortedKeys[4].size() <= 120) SortedKeys[4].push_back(keyValues[i]);
|
if (SortedKeys[4].size() <= 120) SortedKeys[4].push_back(keyValues[i]);
|
||||||
break;
|
break;
|
||||||
case LedKeyboard::KeyboardModel::g410:
|
case LedKeyboard::KeyboardModel::g410:
|
||||||
// need filter num pad for G410
|
if (SortedKeys[4].size() <= 120)
|
||||||
// if (SortedKeys[4].size() <= 120 && keyValues[i].key > 0x07 &&
|
if (keyValues[i].key < LedKeyboard::Key::num_lock || keyValues[i].key > LedKeyboard::Key::num_dot)
|
||||||
// keyValues[i].key < 0x23)
|
SortedKeys[4].push_back(keyValues[i]);
|
||||||
// SortedKeys[4].push_back(keyValues[i]);
|
|
||||||
if (SortedKeys[4].size() <= 120) SortedKeys[4].push_back(keyValues[i]);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user