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

Commit 2bcfe436 authored by Billy Laws's avatar Billy Laws Committed by Paul Keith
Browse files

Add Nintendo Switch Joycon keylayouts

Devices 2006 and 2007 are the left and right joycons, respectively.

Change-Id: I2f91ec8d4c4ebc91ce64bba1d287831cd093a216
parent 27419d65
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
# Nintendo Switch Joycon (left)

key 304 BUTTON_A
key 305 BUTTON_B
key 308 BUTTON_Y
key 307 BUTTON_X
key 315 BUTTON_START
key 314 BUTTON_SELECT
key 310 BUTTON_L1
key 311 BUTTON_R1
key 312 BUTTON_L2
key 313 BUTTON_R2
key 316 HOME
key 306 BACK

axis 0x00 X flat 1024
axis 0x01 Y flat 1024
axis 0x02 Z flat 1024
axis 0x05 RZ flat 1024

axis 0x10 HAT_X
axis 0x11 HAT_Y
axis 0x14 LTRIGGER
axis 0x15 RTRIGGER
+24 −0
Original line number Diff line number Diff line
# Nintendo Switch Joycon (right)

key 304 BUTTON_A
key 305 BUTTON_B
key 308 BUTTON_Y
key 307 BUTTON_X
key 315 BUTTON_START
key 314 BUTTON_SELECT
key 310 BUTTON_L1
key 311 BUTTON_R1
key 312 BUTTON_L2
key 313 BUTTON_R2
key 316 HOME
key 306 BACK

axis 0x00 X flat 1024
axis 0x01 Y flat 1024
axis 0x02 Z flat 1024
axis 0x05 RZ flat 1024

axis 0x10 HAT_X
axis 0x11 HAT_Y
axis 0x14 LTRIGGER
axis 0x15 RTRIGGER