additional changges for keyboard processing

This commit is contained in:
kkoenig1@optonline.com
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent 52ec439ca2
commit 35af1cd008
5 changed files with 52 additions and 13 deletions
+9
View File
@@ -43,6 +43,15 @@ event_t s_evt;
struct InactivityData inactivity = {0};
Key keys[NUM_KEYS];
/**
* @brief returns true if there is an event waiting.
*
*/
bool isEvent()
{
return s_evt != 0;
}
event_t getEvent(bool trim)
{
event_t event = s_evt;