summaryrefslogtreecommitdiff
path: root/data/keyboards
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2018-08-29 08:54:27 -0700
committerSiarhei Vishniakou <svv@google.com>2018-08-29 10:46:23 -0700
commit7b0b609beb9469e25f0b391e49fd086d93d2f356 (patch)
tree928a0a965267bb5a030459712e6a997a7a037d38 /data/keyboards
parentc8344a19637ff39f84cbd6acecb952c80f2c4de5 (diff)
Add comments to Asus Gamepad button mappings
Currently, the circle button on odie (Asus Gamepad) is mapped to HOME. But it is not clear which button is which just from looking at the key layout file. Add some annotations here. Bug: 111431828 Bug: 110270125 Test: atest AsusGamepadTestCase (the test is currently in development) Change-Id: I8d1317be7f403ceaf0c2d72d756623e3cd032559
Diffstat (limited to 'data/keyboards')
-rw-r--r--data/keyboards/Vendor_18d1_Product_2c40.kl15
1 files changed, 11 insertions, 4 deletions
diff --git a/data/keyboards/Vendor_18d1_Product_2c40.kl b/data/keyboards/Vendor_18d1_Product_2c40.kl
index 6efde4fa2cbc..2b42f871b0a2 100644
--- a/data/keyboards/Vendor_18d1_Product_2c40.kl
+++ b/data/keyboards/Vendor_18d1_Product_2c40.kl
@@ -20,13 +20,9 @@ key 307 BUTTON_X
key 308 BUTTON_Y
key 310 BUTTON_L1
key 311 BUTTON_R1
-key 316 BUTTON_MODE
key 317 BUTTON_THUMBL
key 318 BUTTON_THUMBR
-key 158 BACK
-key 172 HOME
-
axis 0x00 X
axis 0x01 Y
axis 0x02 Z
@@ -40,3 +36,14 @@ led 0x00 CONTROLLER_1
led 0x01 CONTROLLER_2
led 0x02 CONTROLLER_3
led 0x03 CONTROLLER_4
+
+# The next 2 buttons do not follow Linux standard because this behaviour was specified by the UX
+# Left arrow to the immediate left of the power button
+key 158 BACK
+# Circle to the immediate right of the power button
+key 172 HOME
+
+
+# Mapping according to https://www.kernel.org/doc/Documentation/input/gamepad.txt
+# Power button
+key 316 BUTTON_MODE