diff options
| author | Angela Czubak <aczubak@google.com> | 2025-08-18 23:08:50 +0000 |
|---|---|---|
| committer | Benjamin Tissoires <bentiss@kernel.org> | 2025-09-15 14:32:55 +0200 |
| commit | 4e584ac737884ef0fd80f6836b917972fad86b17 (patch) | |
| tree | c4aff0c1ab2107df7a21b3dbf8dba8d9ebbe0cb8 /include/linux/input | |
| parent | a77efca3aa85e382b52b587ca9976c0f8e11d49c (diff) | |
Input: MT - add INPUT_MT_TOTAL_FORCE flags
Add a flag to generate ABS_PRESSURE as sum of ABS_MT_PRESSURE across
all slots.
This flag should be set if one knows a device reports true force and would
like to report total force to the userspace.
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>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'include/linux/input')
| -rw-r--r-- | include/linux/input/mt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/input/mt.h b/include/linux/input/mt.h index 2cf89a538b18..d30286298a00 100644 --- a/include/linux/input/mt.h +++ b/include/linux/input/mt.h @@ -17,6 +17,7 @@ #define INPUT_MT_DROP_UNUSED 0x0004 /* drop contacts not seen in frame */ #define INPUT_MT_TRACK 0x0008 /* use in-kernel tracking */ #define INPUT_MT_SEMI_MT 0x0010 /* semi-mt device, finger count handled manually */ +#define INPUT_MT_TOTAL_FORCE 0x0020 /* calculate total force from slots pressure */ /** * struct input_mt_slot - represents the state of an input MT slot |
