From 477f0b6a051dc7f70a461bc3d480396ebbfe4d49 Mon Sep 17 00:00:00 2001 From: Dragon51 Date: Fri, 19 Jul 2024 07:48:51 +0000 Subject: [PATCH] =?UTF-8?q?UWB=E9=81=A5=E6=8E=A7=E5=8D=97=E5=90=91?= =?UTF-8?q?=E6=8E=A5=E5=85=A5,=E4=BA=8B=E4=BB=B6=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E6=96=B0=E5=A2=9EABS=5FMT=5FMOVEFLAG=E5=AD=97=E6=AE=B5,libevde?= =?UTF-8?q?v=E5=90=8C=E6=AD=A5=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dragon51 Change-Id: Ic1920579c07638c57e346f7bc92d48149f5f36a6 --- include/event-names.h | 2 ++ include/linux/linux/input-event-codes.h | 1 + .../libevdev/libevdev_0000.diff | 28 +++++++++++++++++-- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/include/event-names.h b/include/event-names.h index a8797e4..d42fd7c 100644 --- a/include/event-names.h +++ b/include/event-names.h @@ -63,6 +63,7 @@ static const char * const abs_map[ABS_MAX + 1] = { [ABS_TOOL_WIDTH] = "ABS_TOOL_WIDTH", [ABS_VOLUME] = "ABS_VOLUME", [ABS_MISC] = "ABS_MISC", + [ABS_MT_MOVEFLAG] = "ABS_MT_MOVEFLAG", [ABS_RESERVED] = "ABS_RESERVED", [ABS_MT_SLOT] = "ABS_MT_SLOT", [ABS_MT_TOUCH_MAJOR] = "ABS_MT_TOUCH_MAJOR", @@ -893,6 +894,7 @@ static const struct name_entry ev_names[] = { }; static const struct name_entry code_names[] = { + { .name = "ABS_MT_MOVEFLAG", .value = ABS_MT_MOVEFLAG }, { .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..5dc2529 100644 --- a/include/linux/linux/input-event-codes.h +++ b/include/linux/linux/input-event-codes.h @@ -864,6 +864,7 @@ #define ABS_VOLUME 0x20 #define ABS_MISC 0x28 +#define ABS_MT_MOVEFLAG 0x29 /* * 0x2e is reserved and should not be used in input drivers. diff --git a/patch/diff_libevdev_mmi/libevdev/libevdev_0000.diff b/patch/diff_libevdev_mmi/libevdev/libevdev_0000.diff index a481fc9..18ada4c 100644 --- a/patch/diff_libevdev_mmi/libevdev/libevdev_0000.diff +++ b/patch/diff_libevdev_mmi/libevdev/libevdev_0000.diff @@ -14,7 +14,15 @@ limitations under the License. diff -Naur old/include/event-names.h new/include/event-names.h --- old/include/event-names.h 2024-01-01 00:00:00.000000000 +0000 +++ new/include/event-names.h 2024-01-01 00:00:00.000000000 +0000 -@@ -746,6 +746,7 @@ +@@ -63,6 +63,7 @@ + [ABS_TOOL_WIDTH] = "ABS_TOOL_WIDTH", + [ABS_VOLUME] = "ABS_VOLUME", + [ABS_MISC] = "ABS_MISC", ++ [ABS_MT_MOVEFLAG] = "ABS_MT_MOVEFLAG", + [ABS_RESERVED] = "ABS_RESERVED", + [ABS_MT_SLOT] = "ABS_MT_SLOT", + [ABS_MT_TOUCH_MAJOR] = "ABS_MT_TOUCH_MAJOR", +@@ -731,6 +732,7 @@ [SW_MUTE_DEVICE] = "SW_MUTE_DEVICE", [SW_PEN_INSERTED] = "SW_PEN_INSERTED", [SW_MACHINE_COVER] = "SW_MACHINE_COVER", @@ -22,10 +30,26 @@ diff -Naur old/include/event-names.h new/include/event-names.h }; static const char * const ff_map[FF_MAX + 1] = { +@@ -877,6 +879,7 @@ + }; + + static const struct name_entry code_names[] = { ++ { .name = "ABS_MT_MOVEFLAG", .value = ABS_MT_MOVEFLAG }, + { .name = "ABS_BRAKE", .value = ABS_BRAKE }, + { .name = "ABS_DISTANCE", .value = ABS_DISTANCE }, + { .name = "ABS_GAS", .value = ABS_GAS }, diff -Naur old/include/linux/linux/input-event-codes.h new/include/linux/linux/input-event-codes.h --- old/include/linux/linux/input-event-codes.h 2024-01-01 00:00:00.000000000 +0000 +++ new/include/linux/linux/input-event-codes.h 2024-01-01 00:00:00.000000000 +0000 -@@ -917,8 +917,9 @@ +@@ -843,6 +843,7 @@ + #define ABS_VOLUME 0x20 + + #define ABS_MISC 0x28 ++#define ABS_MT_MOVEFLAG 0x29 + + /* + * 0x2e is reserved and should not be used in input drivers. +@@ -896,8 +897,9 @@ #define SW_MUTE_DEVICE 0x0e /* set = device disabled */ #define SW_PEN_INSERTED 0x0f /* set = pen inserted */ #define SW_MACHINE_COVER 0x10 /* set = cover closed */ -- Gitee