Merge pull request #76 from Scyntrus/patch-1
Use OR assignment for NKRO modifier keys
This commit is contained in:
commit
f50383922e
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ size_t NKROKeyboardAPI::set(KeyboardKeycode k, bool s)
|
|||
// Convert key into bitfield (0 - 7)
|
||||
k = KeyboardKeycode(uint8_t(k) - uint8_t(KEY_LEFT_CTRL));
|
||||
if(s){
|
||||
_keyReport.modifiers = (1 << k);
|
||||
_keyReport.modifiers |= (1 << k);
|
||||
}
|
||||
else{
|
||||
_keyReport.modifiers &= ~(1 << k);
|
||||
|
|
|
|||
Loading…
Reference in a new issue