mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-24 12:20:05 +01:00
include: update linux/input.h for kernel 3.12
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
fd3118ea1a
commit
d3c3486560
3 changed files with 4 additions and 6 deletions
|
|
@ -150,6 +150,7 @@ struct input_keymap_entry {
|
|||
#define EVIOCGEFFECTS _IOR('E', 0x84, int) /* Report number of effects playable at the same time */
|
||||
|
||||
#define EVIOCGRAB _IOW('E', 0x90, int) /* Grab/Release device */
|
||||
#define EVIOCREVOKE _IOW('E', 0x91, int) /* Revoke device access */
|
||||
|
||||
#define EVIOCSCLOCKID _IOW('E', 0xa0, int) /* Set clockid to be used for timestamps */
|
||||
|
||||
|
|
@ -192,6 +193,8 @@ struct input_keymap_entry {
|
|||
#define SYN_CONFIG 1
|
||||
#define SYN_MT_REPORT 2
|
||||
#define SYN_DROPPED 3
|
||||
#define SYN_MAX 0xf
|
||||
#define SYN_CNT (SYN_MAX+1)
|
||||
|
||||
/*
|
||||
* Keys and buttons
|
||||
|
|
|
|||
|
|
@ -157,10 +157,6 @@ def print_mapping_table(bits):
|
|||
print("#ifndef EVENT_NAMES_H")
|
||||
print("#define EVENT_NAMES_H")
|
||||
print("")
|
||||
print("#ifndef SYN_MAX /* added in 3.12 */")
|
||||
print("#define SYN_MAX 0xf")
|
||||
print("#endif")
|
||||
print("")
|
||||
|
||||
for prefix in prefixes:
|
||||
if prefix == "BTN_":
|
||||
|
|
|
|||
|
|
@ -190,8 +190,7 @@ START_TEST(test_code_syn_name)
|
|||
ck_assert_str_eq(libevdev_event_code_get_name(EV_SYN, SYN_CONFIG), "SYN_CONFIG");
|
||||
ck_assert_str_eq(libevdev_event_code_get_name(EV_SYN, SYN_MT_REPORT), "SYN_MT_REPORT");
|
||||
ck_assert_str_eq(libevdev_event_code_get_name(EV_SYN, SYN_DROPPED), "SYN_DROPPED");
|
||||
|
||||
/* there is no SYN_MAX */
|
||||
ck_assert_str_eq(libevdev_event_code_get_name(EV_SYN, SYN_MAX), "SYN_MAX");
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue