diff options
author | Peter Osterlund <petero2@telia.com> | 2003-09-24 23:03:43 +0200 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:01:12 +0200 |
commit | fe3d1e6d2bae13264eb85d2466d1e8c78686d993 (patch) | |
tree | b75f696f20f2fd7756b830bed53da81979a558ba /linux_input.h | |
parent | 95256de7cafa261258f02152a89e6f272c0e498c (diff) |
Use the EVIOCGID ioctl for synaptics event device auto
detection. This is much simpler than parsing /proc/bus/input/devices
and more robust too.
Diffstat (limited to 'linux_input.h')
-rw-r--r-- | linux_input.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/linux_input.h b/linux_input.h index 1442dfd..39762d5 100644 --- a/linux_input.h +++ b/linux_input.h @@ -14,9 +14,19 @@ struct input_event { unsigned long tv_usec; unsigned short type; unsigned short code; - unsigned int value; + int value; }; +struct input_id { + unsigned short bustype; + unsigned short vendor; + unsigned short product; + unsigned short version; +}; + +#define EVIOCGID _IOR('E', 0x02, struct input_id) /* get device ID */ + + #define EV_SYN 0x00 #define EV_KEY 0x01 #define EV_REL 0x02 @@ -44,4 +54,10 @@ struct input_event { #define MSC_GESTURE 0x02 + +#define BUS_I8042 0x11 + +#define PSMOUSE_SYNAPTICS 7 + + #endif /* _LINUX_INPUT_H_ */ |