]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: add keyboard mappings for the Ayaneo Kun face buttons
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Thu, 6 Jun 2024 21:17:00 +0000 (23:17 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 11 Jun 2024 17:49:06 +0000 (02:49 +0900)
See comment in hwdb file for details.

hwdb.d/60-keyboard.hwdb

index 461b9a7cb4f55edb06c5a38992b3416f1097cdf7..f1ea0f58b18df090e174738ad08d6bb4fdb17228 100644 (file)
@@ -279,6 +279,22 @@ evdev:name:gpio-keys:phys:gpio-keys/input0:ev:3:dmi:*:svnASUSTeKCOMPUTERINC.:pnT
 evdev:name:gpio-keys:phys:gpio-keys/input0:ev:100003:dmi:*:svnASUSTeKCOMPUTERINC.:pnTF103C*:*
  KEYBOARD_KEY_0=volumedown
 
+###########################################################
+# Ayaneo
+###########################################################
+
+# The Ayaneo Kun is a portable PC handheld console. Four of its
+# face buttons are not exposed through the integrated Xbox360
+# controller, but by a raw AT keyboard.
+#
+# All four of these buttons generate a multi-scancode sequence
+# consisting of Left_Meta, Right_Ctrl and another scancode.
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAYANEO:pnKUN:pvr*
+ KEYBOARD_KEY_18=f13                              # LC (next to the left shoulder button)
+ KEYBOARD_KEY_20=f14                              # RC (next to the right shoulder button)
+ KEYBOARD_KEY_30=f15                              # Start (upper-right corner of screen)
+ KEYBOARD_KEY_28=f16                              # Ayaneo (lower-right corner of screen)
+
 ###########################################################
 # BenQ
 ###########################################################