[-]
[+]
|
Changed |
assistant_button.patch
|
@@ -11,8 +11,20 @@
[0x01d2] = "KEY_FN_F1",
diff -Naur a/event-input.c b/event-input.c
--- a/event-input.c 2021-12-13 01:00:00.000000000 +0100
-+++ b/event-input.c 2022-08-04 17:19:51.051097108 +0200
-@@ -1279,6 +1279,7 @@
++++ b/event-input.c 2022-08-04 17:42:58.341320016 +0200
+@@ -78,6 +78,11 @@
+ # define KEY_CAMERA_FOCUS 0x0210
+ #endif
+
++#ifndef KEY_ASSISTANT
++/** Xperia 10 III Assistant button */
++#define KEY_ASSISTANT 0x01c9
++#endif
++
+ #ifndef FF_STATUS_CNT
+ # ifdef FF_STATUS_MAX
+ # define FF_STATUS_CNT (FF_STATUS_MAX+1)
+@@ -1279,6 +1284,7 @@
/* Home key should be handled by mce and can be
* ignored as well. */
KEY_HOME,
@@ -22,18 +34,21 @@
diff -Naur a/powerkey.c b/powerkey.c
--- a/powerkey.c 2021-12-13 01:00:00.000000000 +0100
-+++ b/powerkey.c 2022-08-04 17:30:56.014420309 +0200
-@@ -46,6 +46,9 @@
- #endif
++++ b/powerkey.c 2022-08-04 17:42:56.665309287 +0200
+@@ -100,6 +100,12 @@
- #include <linux/input.h>
-+// TODO: define it here for now
-+#define KEY_ASSISTANT 0x1c9
-+
+ #define MODULE_NAME "powerkey"
- #include <stdlib.h>
- #include <string.h>
-@@ -3255,6 +3258,18 @@
++#ifndef KEY_ASSISTANT
++/** Xperia 10 III Assistant button */
++#define KEY_ASSISTANT 0x01c9
++#endif
++
++
+ /* ========================================================================= *
+ * PROTOTYPES
+ * ========================================================================= */
+@@ -3255,6 +3261,18 @@
}
break;
|