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
This commit is contained in:
Siarhei Vishniakou
2018-08-29 08:54:27 -07:00
parent c8344a1963
commit 7b0b609beb

View File

@@ -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