Add a new 'wasModifierKeyActive' wrapper around a new method in KeyboardioHID

pull/179/head
Jesse Vincent 7 years ago
parent f6efa041b7
commit 14ae21267b
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -64,6 +64,11 @@ boolean isModifierKeyActive(Key mappedKey) {
return Keyboard.isModifierActive(mappedKey.keyCode); return Keyboard.isModifierActive(mappedKey.keyCode);
} }
boolean wasModifierKeyActive(Key mappedKey) {
return Keyboard.wasModifierActive(mappedKey.keyCode);
}
void sendKeyboardReport() { void sendKeyboardReport() {
Keyboard.sendReport(); Keyboard.sendReport();
} }

@ -18,6 +18,7 @@ void releaseRawKey(Key mappedKey);
void sendKeyboardReport(); void sendKeyboardReport();
boolean isModifierKeyActive(Key mappedKey); boolean isModifierKeyActive(Key mappedKey);
boolean wasModifierKeyActive(Key mappedKey);
void initializeConsumerControl(); void initializeConsumerControl();

Loading…
Cancel
Save