Skip to content

Commit 7075ae4

Browse files
Angela CzubakBenjamin Tissoires
authored andcommitted
Input: add INPUT_PROP_HAPTIC_TOUCHPAD
INPUT_PROP_HAPTIC_TOUCHPAD property is to be set for a device with simple haptic capabilities. Signed-off-by: Angela Czubak <aczubak@google.com> Co-developed-by: Jonathan Denose <jdenose@google.com> Signed-off-by: Jonathan Denose <jdenose@google.com> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
1 parent 08a72a2 commit 7075ae4

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Documentation/input/event-codes.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,20 @@ can report through the rotational axes (absolute and/or relative rx, ry, rz).
400400
All other axes retain their meaning. A device must not mix
401401
regular directional axes and accelerometer axes on the same event node.
402402

403+
INPUT_PROP_HAPTIC_TOUCHPAD
404+
--------------------------
405+
406+
The INPUT_PROP_HAPTIC_TOUCHPAD property indicates that device:
407+
- supports simple haptic auto and manual triggering
408+
- can differentiate between at least 5 fingers
409+
- uses correct resolution for the X/Y (units and value)
410+
- reports correct force per touch, and correct units for them (newtons or grams)
411+
- follows the MT protocol type B
412+
413+
Summing up, such devices follow the MS spec for input devices in
414+
Win8 and Win8.1, and in addition support the Simple haptic controller HID table,
415+
and report correct units for the pressure.
416+
403417
Guidelines
404418
==========
405419

include/uapi/linux/input-event-codes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */
2828
#define INPUT_PROP_POINTING_STICK 0x05 /* is a pointing stick */
2929
#define INPUT_PROP_ACCELEROMETER 0x06 /* has accelerometer */
30+
#define INPUT_PROP_HAPTIC_TOUCHPAD 0x07 /* is a haptic touchpad */
3031

3132
#define INPUT_PROP_MAX 0x1f
3233
#define INPUT_PROP_CNT (INPUT_PROP_MAX + 1)

0 commit comments

Comments
 (0)