mirror of
https://github.com/openharmony/third_party_libevdev.git
synced 2026-07-18 17:24:31 -04:00
Signed-off-by: mr-liang2504 <liangzhicheng10@huawei.com>
Change-Id: I7166210d353e70c8bdc052497b10cfa792412971
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
Copyright (C) 2024 Huawei Device Co., Ltd.
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at\n
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
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 @@
|
||||
[SW_MUTE_DEVICE] = "SW_MUTE_DEVICE",
|
||||
[SW_PEN_INSERTED] = "SW_PEN_INSERTED",
|
||||
[SW_MACHINE_COVER] = "SW_MACHINE_COVER",
|
||||
+ [SW_SUPER_PRIVACY] = "SW_SUPER_PRIVACY",
|
||||
};
|
||||
|
||||
static const char * const ff_map[FF_MAX + 1] = {
|
||||
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 @@
|
||||
#define SW_MUTE_DEVICE 0x0e /* set = device disabled */
|
||||
#define SW_PEN_INSERTED 0x0f /* set = pen inserted */
|
||||
#define SW_MACHINE_COVER 0x10 /* set = cover closed */
|
||||
-#define SW_MAX 0x10
|
||||
-#define SW_CNT (SW_MAX+1)
|
||||
+#define SW_SUPER_PRIVACY 0x11 /* set = super privacy open */
|
||||
+#define SW_MAX 0x11
|
||||
+#define SW_CNT (SW_MAX+1)
|
||||
|
||||
/*
|
||||
* Misc events
|
||||
Reference in New Issue
Block a user