aboutsummaryrefslogtreecommitdiffstats
path: root/linux_keycodes.h
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2012-02-15 17:16:04 -0800
committerVladimir Chtchetkine <vchtchetkine@google.com>2012-03-05 14:14:39 -0800
commit8dd31e8e10fc3ca10192368acf19d2345eeddde7 (patch)
tree7c469657616d59c3a2723ec446f528d4bbaee56d /linux_keycodes.h
parentbf45fc2a26358b7ec52cb17bb9d6ed67d6483b01 (diff)
downloadexternal_qemu-8dd31e8e10fc3ca10192368acf19d2345eeddde7.zip
external_qemu-8dd31e8e10fc3ca10192368acf19d2345eeddde7.tar.gz
external_qemu-8dd31e8e10fc3ca10192368acf19d2345eeddde7.tar.bz2
Multi-touch emulation support
Change-Id: I311dc55fe10f41637775baa330a7c732ff317f51
Diffstat (limited to 'linux_keycodes.h')
-rw-r--r--linux_keycodes.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/linux_keycodes.h b/linux_keycodes.h
index 3875028..195797e 100644
--- a/linux_keycodes.h
+++ b/linux_keycodes.h
@@ -449,4 +449,60 @@
#define KEY_MIN_INTERESTING KEY_MUTE
#define KEY_MAX 0x1ff
+#ifndef ABS_MT_SLOT
+#define ABS_MT_SLOT 0x2f /* MT slot being modified */
+#endif
+#ifndef ABS_MT_TOUCH_MAJOR
+#define ABS_MT_TOUCH_MAJOR 0x30 /* Major axis of touching ellipse */
+#endif
+#ifndef ABS_MT_TOUCH_MINOR
+#define ABS_MT_TOUCH_MINOR 0x31 /* Minor axis (omit if circular) */
+#endif
+#ifndef ABS_MT_WIDTH_MAJOR
+#define ABS_MT_WIDTH_MAJOR 0x32 /* Major axis of approaching ellipse */
+#endif
+#ifndef ABS_MT_WIDTH_MINOR
+#define ABS_MT_WIDTH_MINOR 0x33 /* Minor axis (omit if circular) */
+#endif
+#ifndef ABS_MT_ORIENTATION
+#define ABS_MT_ORIENTATION 0x34 /* Ellipse orientation */
+#endif
+#ifndef ABS_MT_POSITION_X
+#define ABS_MT_POSITION_X 0x35 /* Center X ellipse position */
+#endif
+#ifndef ABS_MT_POSITION_Y
+#define ABS_MT_POSITION_Y 0x36 /* Center Y ellipse position */
+#endif
+#ifndef ABS_MT_TOOL_TYPE
+#define ABS_MT_TOOL_TYPE 0x37 /* Type of touching device */
+#endif
+#ifndef ABS_MT_BLOB_ID
+#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */
+#endif
+#ifndef ABS_MT_TRACKING_ID
+#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */
+#endif
+#ifndef ABS_MT_PRESSURE
+#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */
+#endif
+#ifndef ABS_MT_DISTANCE
+#define ABS_MT_DISTANCE 0x3b /* Contact hover distance */
+#endif
+#ifndef ABS_MAX
+#define ABS_MAX 0x3f
+#endif
+
+#ifndef SYN_REPORT
+#define SYN_REPORT 0
+#endif
+#ifndef SYN_CONFIG
+#define SYN_CONFIG 1
+#endif
+#ifndef SYN_MT_REPORT
+#define SYN_MT_REPORT 2
+#endif
+#ifndef SYN_DROPPED
+#define SYN_DROPPED 3
+#endif
+
#endif