From 6e8ddf1a895a1aa43335fbd7254928f34c64d788 Mon Sep 17 00:00:00 2001 From: Dragon51 Date: Thu, 20 Mar 2025 17:05:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E6=A8=A1=E6=94=AF=E6=8C=81=E4=B8=8A?= =?UTF-8?q?=E6=8A=A5=E6=89=8B=E5=86=99=E7=AC=94=E4=BE=A7=E6=97=8B=E8=A7=92?= =?UTF-8?q?=E5=BA=A6=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dragon51 --- include/event-names.h | 2 ++ include/linux/linux/input-event-codes.h | 1 + 2 files changed, 3 insertions(+) diff --git a/include/event-names.h b/include/event-names.h index 6d94232..fbfe326 100644 --- a/include/event-names.h +++ b/include/event-names.h @@ -60,6 +60,7 @@ static const char * const abs_map[ABS_MAX + 1] = { [ABS_DISTANCE] = "ABS_DISTANCE", [ABS_TILT_X] = "ABS_TILT_X", [ABS_TILT_Y] = "ABS_TILT_Y", + [ABS_MT_ANGLE] = "ABS_MT_ANGLE", [ABS_TOOL_WIDTH] = "ABS_TOOL_WIDTH", [ABS_VOLUME] = "ABS_VOLUME", [ABS_HAND_FEATURE] = "ABS_HAND_FEATURE", @@ -934,6 +935,7 @@ static const struct name_entry code_names[] = { { .name = "ABS_THROTTLE", .value = ABS_THROTTLE }, { .name = "ABS_TILT_X", .value = ABS_TILT_X }, { .name = "ABS_TILT_Y", .value = ABS_TILT_Y }, + { .name = "ABS_MT_ANGLE", .value = ABS_MT_ANGLE }, { .name = "ABS_TOOL_WIDTH", .value = ABS_TOOL_WIDTH }, { .name = "ABS_VOLUME", .value = ABS_VOLUME }, { .name = "ABS_WHEEL", .value = ABS_WHEEL }, diff --git a/include/linux/linux/input-event-codes.h b/include/linux/linux/input-event-codes.h index 348432a..430ec13 100644 --- a/include/linux/linux/input-event-codes.h +++ b/include/linux/linux/input-event-codes.h @@ -865,6 +865,7 @@ #define ABS_HAND_FEATURE 0x21 #define ABS_MISC 0x28 #define ABS_MT_MOVEFLAG 0x29 +#define ABS_MT_ANGLE 0x2c /* * 0x2e is reserved and should not be used in input drivers. -- Gitee