Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b0b609b authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

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
parent c8344a19
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -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