aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/input.h
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2018-07-13 10:13:43 -0400
committerJiri Kosina <jkosina@suse.cz>2018-07-17 09:33:47 -0400
commitb875a5a529bedf73532000f4e2496c00a00f4765 (patch)
tree5d21ab839b834c310aeb81983cc33f80c6c558e1 /include/uapi/linux/input.h
parent092150a25cb7bd6a79aa00bb1ad131063f58073d (diff)
input: add MT_TOOL_DIAL
A dial is a tool you place on a multitouch surface which reports its orientation or a relative angle of rotation when rotating its knob. Some examples are the Dell Totem (on the Canvas 27"), the Microsoft Dial, or the Griffin Powermate, though the later can't be put on a touch surface. We give some extra space to account for other types of fingers if we need (MT_TOOL_THUMB) Slightly change the documentation to not make it mandatory to update each MT_TOOL we add. Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/uapi/linux/input.h')
-rw-r--r--include/uapi/linux/input.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h
index 7288a7c573cc..fb78f6f500f3 100644
--- a/include/uapi/linux/input.h
+++ b/include/uapi/linux/input.h
@@ -270,10 +270,11 @@ struct input_mask {
270/* 270/*
271 * MT_TOOL types 271 * MT_TOOL types
272 */ 272 */
273#define MT_TOOL_FINGER 0 273#define MT_TOOL_FINGER 0x00
274#define MT_TOOL_PEN 1 274#define MT_TOOL_PEN 0x01
275#define MT_TOOL_PALM 2 275#define MT_TOOL_PALM 0x02
276#define MT_TOOL_MAX 2 276#define MT_TOOL_DIAL 0x0a
277#define MT_TOOL_MAX 0x0f
277 278
278/* 279/*
279 * Values describing the status of a force-feedback effect 280 * Values describing the status of a force-feedback effect