From 8f11057d166833b3f31bee902e6b77893f67bb8b Mon Sep 17 00:00:00 2001 From: lcaidm Date: Fri, 3 Jan 2025 19:48:14 +0800 Subject: [PATCH] bugfix Signed-off-by:lcaidm Signed-off-by: lcaidm --- include/event-names.h | 2 ++ include/linux/linux/input-event-codes.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/event-names.h b/include/event-names.h index d42fd7c..6d94232 100644 --- a/include/event-names.h +++ b/include/event-names.h @@ -62,6 +62,7 @@ static const char * const abs_map[ABS_MAX + 1] = { [ABS_TILT_Y] = "ABS_TILT_Y", [ABS_TOOL_WIDTH] = "ABS_TOOL_WIDTH", [ABS_VOLUME] = "ABS_VOLUME", + [ABS_HAND_FEATURE] = "ABS_HAND_FEATURE", [ABS_MISC] = "ABS_MISC", [ABS_MT_MOVEFLAG] = "ABS_MT_MOVEFLAG", [ABS_RESERVED] = "ABS_RESERVED", @@ -894,6 +895,7 @@ static const struct name_entry ev_names[] = { }; static const struct name_entry code_names[] = { + { .name = "ABS_HAND_FEATURE", .value = ABS_HAND_FEATURE }, { .name = "ABS_MT_MOVEFLAG", .value = ABS_MT_MOVEFLAG }, { .name = "ABS_BRAKE", .value = ABS_BRAKE }, { .name = "ABS_DISTANCE", .value = ABS_DISTANCE }, diff --git a/include/linux/linux/input-event-codes.h b/include/linux/linux/input-event-codes.h index 5dc2529..348432a 100644 --- a/include/linux/linux/input-event-codes.h +++ b/include/linux/linux/input-event-codes.h @@ -862,7 +862,7 @@ #define ABS_TOOL_WIDTH 0x1c #define ABS_VOLUME 0x20 - +#define ABS_HAND_FEATURE 0x21 #define ABS_MISC 0x28 #define ABS_MT_MOVEFLAG 0x29 -- Gitee