add an "isModifierActive" to the hid facade

pull/144/merge
Jesse Vincent 7 years ago
parent 02695b8cea
commit f5aaedffd5
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -117,7 +117,9 @@ void releaseKey(Key mappedKey) {
releaseKeyRaw(mappedKey); releaseKeyRaw(mappedKey);
} }
boolean isModifierKeyActive(Key mappedKey) {
return Keyboard.isModifierActive(mappedKey.keyCode);
}
void sendKeyboardReport() { void sendKeyboardReport() {
Keyboard.sendReport(); Keyboard.sendReport();

@ -56,6 +56,8 @@ void releaseKeyRaw(Key mappedKey);
/** Flushes any pending regular key switch events and sends them out */ /** Flushes any pending regular key switch events and sends them out */
void sendKeyboardReport(); void sendKeyboardReport();
boolean isModifierKeyActive(Key mappedKey);
void initializeConsumerControl(); void initializeConsumerControl();
void pressConsumer(Key mappedKey); void pressConsumer(Key mappedKey);

Loading…
Cancel
Save