diff options
author | Jeong-Hyun Kang <jhyuni.kang@samsung.com> | 2015-02-05 15:17:11 +0900 |
---|---|---|
committer | Jeong-Hyun Kang <jhyuni.kang@samsung.com> | 2015-02-05 15:17:43 +0900 |
commit | 8778bc0d63273315e071eb7140ff42a44acba42d (patch) | |
tree | ae9f9627dc44af644c81401a5633270580113850 /src/evdev.h | |
parent | f5d0222399838dfa62d6dca03c1b5b82dec61b48 (diff) | |
download | xf86-input-evdev-tizen.tar.gz xf86-input-evdev-tizen.tar.bz2 xf86-input-evdev-tizen.zip |
Implement remap for support keys which had keycode bigger than 255HEADsubmit/tizen/20150210.105318accepted/tizen/wearable/20150210.155102accepted/tizen/tv/20150210.141306accepted/tizen/mobile/20150210.155521accepted/tizen/common/20150210.133013tizen_3.0.2015.q2_commontizenaccepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_common
Change-Id: Ib534968886004851df605a1314de4b4a2f899cc0
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; |