mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-04-14 11:54:16 +00:00
Use the EVIOCGID ioctl for synaptics event device auto
detection. This is much simpler than parsing /proc/bus/input/devices and more robust too.
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user