Compilation fix

This commit is contained in:
Bertrand Songis
2019-10-05 08:21:06 +02:00
parent d9eb9c3a4d
commit 6504b4f69c
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -34,8 +34,6 @@ constexpr event_t _MSK_KEY_REPT = 0x0400;
constexpr event_t _MSK_KEY_FIRST = 0x0600;
constexpr event_t _MSK_KEY_LONG = 0x0800;
constexpr event_t _MSK_KEY_FLAGS = 0x0E00;
constexpr event_t EVT_ENTRY = 0x1000;
constexpr event_t EVT_ENTRY_UP = 0x2000;
#else
constexpr event_t _MSK_KEY_BREAK = 0x20;
constexpr event_t _MSK_KEY_REPT = 0x40;
@@ -46,6 +44,12 @@ constexpr event_t EVT_ENTRY = 0xBF;
constexpr event_t EVT_ENTRY_UP = 0xBE;
#endif
#if defined(HARDWARE_TOUCH)
constexpr event_t _MSK_VIRTUAL_KEY = 0x1000;
#endif
#define EVT_VIRTUAL_KEY(key) ((key) | _MSK_VIRTUAL_KEY)
// normal order of events is: FIRST, LONG, REPEAT, REPEAT, ..., BREAK
#define EVT_KEY_FIRST(key) ((key)|_MSK_KEY_FIRST) // fired when key is pressed
#define EVT_KEY_LONG(key) ((key)|_MSK_KEY_LONG) // fired when key is held pressed for a while