src/MultiReport/Keyboard.cpp
bool Keyboard_::wasKeyPressed(uint8_t k) {

  if (k <= HID_LAST_KEY) {
    uint8_t bit = 1 << (uint8_t(k) % 8);
    return !!(last_report_.keys[k / 8] & bit);
  }
  return false;
}
/* Returns true if the non-modifer key passed in was sent during the previous key report
 * Returns false in all other cases
 * */
Returns true if the non-modifer key passed in was sent during the previous key report
Returns false in all other cases
Returns true if the non - modifer key passed in was sent during the previous key report Returns false in all other cases
bool Keyboard_::wasKeyPressed(uint8_t k) {
  if (k <= HID_LAST_KEY) {
    uint8_t bit = 1 << (uint8_t(k) % 8);
    return !!(last_report_.keys[k / 8] & bit);
  }
  return false;
}
bool Keyboard_ :: wasKeyPressed ( uint8_t k ) { if ( k <= HID_LAST_KEY ) { uint8_t bit = 1 << ( uint8_t ( k ) % 8 ) ; return ! ! ( last_report_ . keys [ k / 8 ] & bit ) ; } return false ; }
Returns true if the non-modifer key passed in was sent during the previous key report
 Returns false in all other cases
Returns true if the non - modifer key passed in was sent during the previous key report Returns false in all other cases