Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Angela Czubak and committed by
Benjamin Tissoires
7075ae4a 08a72a22

+15
+14
Documentation/input/event-codes.rst
··· 400 400 All other axes retain their meaning. A device must not mix 401 401 regular directional axes and accelerometer axes on the same event node. 402 402 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 + 403 417 Guidelines 404 418 ========== 405 419
+1
include/uapi/linux/input-event-codes.h
··· 27 27 #define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */ 28 28 #define INPUT_PROP_POINTING_STICK 0x05 /* is a pointing stick */ 29 29 #define INPUT_PROP_ACCELEROMETER 0x06 /* has accelerometer */ 30 + #define INPUT_PROP_HAPTIC_TOUCHPAD 0x07 /* is a haptic touchpad */ 30 31 31 32 #define INPUT_PROP_MAX 0x1f 32 33 #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1)