summaryrefslogtreecommitdiff
path: root/linux_input.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux_input.h')
-rw-r--r--linux_input.h18
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_ */