aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-12-06 04:05:43 -0500
committerHenrik Rydberg <rydberg@euromail.se>2010-12-16 04:42:29 -0500
commite42a98b520bb22535687ead3120e80edc268279a (patch)
treecd8bfdc35552a3d3911928b0d1a6600e85793264 /include
parentc5f4dec1ceb6ab773bbbefbe64a7c990c7d6b17f (diff)
input: mt: Add hovering distance axis
Touch devices capable of hovering, i.e., fingers detected a distance from the surface, are not supported by the current input MT protocol. This patch adds ABS_MT_DISTANCE, which may be used to indicate the distance between the contact and the surface. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include')
-rw-r--r--include/linux/input.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 6de145df4c1c..b3a1e02080c0 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -733,11 +733,12 @@ struct input_keymap_entry {
733#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */ 733#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */
734#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */ 734#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */
735#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */ 735#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */
736#define ABS_MT_DISTANCE 0x3b /* Contact hover distance */
736 737
737#ifdef __KERNEL__ 738#ifdef __KERNEL__
738/* Implementation details, userspace should not care about these */ 739/* Implementation details, userspace should not care about these */
739#define ABS_MT_FIRST ABS_MT_TOUCH_MAJOR 740#define ABS_MT_FIRST ABS_MT_TOUCH_MAJOR
740#define ABS_MT_LAST ABS_MT_PRESSURE 741#define ABS_MT_LAST ABS_MT_DISTANCE
741#endif 742#endif
742 743
743#define ABS_MAX 0x3f 744#define ABS_MAX 0x3f