src/MultiReport/Keyboard.cpp
bool Keyboard_::isModifierActive(uint8_t k) {
  if (k >= HID_KEYBOARD_FIRST_MODIFIER && k <= HID_KEYBOARD_LAST_MODIFIER) {
    k = k - HID_KEYBOARD_FIRST_MODIFIER;
    return !!(report_.modifiers & (1 << k));
  }
  return false;
}
/* Returns true if the modifer key passed in will be sent during this key report
 * Returns false in all other cases
 * */
Returns true if the modifer key passed in will be sent during this key report
Returns false in all other cases
Returns true if the modifer key passed in will be sent during this key report Returns false in all other cases
bool Keyboard_::isModifierActive(uint8_t k) {
  if (k >= HID_KEYBOARD_FIRST_MODIFIER && k <= HID_KEYBOARD_LAST_MODIFIER) {
    k = k - HID_KEYBOARD_FIRST_MODIFIER;
    return !!(report_.modifiers & (1 << k));
  }
  return false;
}
bool Keyboard_ :: isModifierActive ( uint8_t k ) { if ( k >= HID_KEYBOARD_FIRST_MODIFIER && k <= HID_KEYBOARD_LAST_MODIFIER ) { k = k - HID_KEYBOARD_FIRST_MODIFIER ; return ! ! ( report_ . modifiers & ( 1 << k ) ) ; } return false ; }
Returns true if the modifer key passed in will be sent during this key report
 Returns false in all other cases
Returns true if the modifer key passed in will be sent during this key report Returns false in all other cases