diff options
Diffstat (limited to 'src/evdev.h')
-rw-r--r-- | src/evdev.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h index c2f9246..44bb42b 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -145,6 +145,15 @@ typedef struct { #endif } EventQueueRec, *EventQueuePtr; +#ifdef _F_REMAP_KEYS_ +typedef struct { + uint8_t cd[256]; +} EvdevKeyRemapSlice; +typedef struct { + EvdevKeyRemapSlice* sl[256]; +} EvdevKeyRemap, *EvdevKeyRemapPtr; +#endif //_F_REMAP_KEYS_ + typedef struct { unsigned short id_vendor; unsigned short id_product; @@ -228,6 +237,10 @@ typedef struct { unsigned char btnmap[32]; /* config-file specified button mapping */ +#ifdef _F_REMAP_KEYS_ + EvdevKeyRemapPtr keyremap; +#endif //_F_REMAP_KEYS_ + int reopen_attempts; /* max attempts to re-open after read failure */ int reopen_left; /* number of attempts left to re-open the device */ OsTimerPtr reopen_timer; |