mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 17:20:05 +01:00
include: sync event codes with kernel 5.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6852dadbca
commit
951cd6a189
2 changed files with 7 additions and 1 deletions
|
|
@ -716,6 +716,8 @@
|
||||||
* the situation described above.
|
* the situation described above.
|
||||||
*/
|
*/
|
||||||
#define REL_RESERVED 0x0a
|
#define REL_RESERVED 0x0a
|
||||||
|
#define REL_WHEEL_HI_RES 0x0b
|
||||||
|
#define REL_HWHEEL_HI_RES 0x0c
|
||||||
#define REL_MAX 0x0f
|
#define REL_MAX 0x0f
|
||||||
#define REL_CNT (REL_MAX+1)
|
#define REL_CNT (REL_MAX+1)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,13 +24,17 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct input_event {
|
struct input_event {
|
||||||
#if (__BITS_PER_LONG != 32 || !defined(__USE_TIME_BITS64)) && !defined(__KERNEL)
|
#if (__BITS_PER_LONG != 32 || !defined(__USE_TIME_BITS64)) && !defined(__KERNEL__)
|
||||||
struct timeval time;
|
struct timeval time;
|
||||||
#define input_event_sec time.tv_sec
|
#define input_event_sec time.tv_sec
|
||||||
#define input_event_usec time.tv_usec
|
#define input_event_usec time.tv_usec
|
||||||
#else
|
#else
|
||||||
__kernel_ulong_t __sec;
|
__kernel_ulong_t __sec;
|
||||||
|
#if defined(__sparc__) && defined(__arch64__)
|
||||||
|
unsigned int __usec;
|
||||||
|
#else
|
||||||
__kernel_ulong_t __usec;
|
__kernel_ulong_t __usec;
|
||||||
|
#endif
|
||||||
#define input_event_sec __sec
|
#define input_event_sec __sec
|
||||||
#define input_event_usec __usec
|
#define input_event_usec __usec
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue