From fd98d5ace8b15805da00d94b116672df0e6ca842 Mon Sep 17 00:00:00 2001 From: lcaidm Date: Fri, 7 Feb 2025 16:23:10 +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 a8797e4..dffd148 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_RESERVED] = "ABS_RESERVED", [ABS_MT_SLOT] = "ABS_MT_SLOT", @@ -893,6 +894,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_BRAKE", .value = ABS_BRAKE }, { .name = "ABS_DISTANCE", .value = ABS_DISTANCE }, { .name = "ABS_GAS", .value = ABS_GAS }, diff --git a/include/linux/linux/input-event-codes.h b/include/linux/linux/input-event-codes.h index 1d921ff..69d8626 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 /* -- Gitee