summaryrefslogtreecommitdiff
path: root/ps2comm.h
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-04-14 20:15:19 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:02:04 +0200
commitb8e955b4ce399ba44e60bd13f9838974eee88513 (patch)
tree8b2754dcd401b29c37dab9aa35f2d9e1c7a5687a /ps2comm.h
parent599641dbbbd9cadf68ddf8cf8ffffbc1533d4012 (diff)
Handle touchpads with a middle mouse button. Based on a 2.6
kernel patch from Dmitry Torokhov.
Diffstat (limited to 'ps2comm.h')
-rw-r--r--ps2comm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ps2comm.h b/ps2comm.h
index b78adb9..d7d475a 100644
--- a/ps2comm.h
+++ b/ps2comm.h
@@ -14,6 +14,7 @@
/* synaptics model ID bits */
#define SYN_MODEL_ROT180(synhw) ((synhw).model_id & (1 << 23))
#define SYN_MODEL_PORTRAIT(synhw) ((synhw).model_id & (1 << 22))
+#define SYN_CAP_MIDDLE_BUTTON(synhw) ((synhw).model_id & (1 << 18))
#define SYN_MODEL_SENSOR(synhw) (((synhw).model_id >> 16) & 0x3f)
#define SYN_MODEL_HARDWARE(synhw) (((synhw).model_id >> 9) & 0x7f)
#define SYN_MODEL_NEWABS(synhw) ((synhw).model_id & (1 << 7))