Hi All,
I'm trying to write a keylayout for the Ouya controller that'll work on generic Android devices (because the original Ouya KL file doesn't work). I've got all the buttons/axis to work but the left shoulder trigger axis reads as both LTRIGGER and BRAKE, which is weird! A simply simulation is to # out LTRIGGER so it only works as BUTTON_L2, but it'd be nice to get this axis working properly. I'm a noob at keylayouts so can anyone help? :good:
I'm trying to write a keylayout for the Ouya controller that'll work on generic Android devices (because the original Ouya KL file doesn't work). I've got all the buttons/axis to work but the left shoulder trigger axis reads as both LTRIGGER and BRAKE, which is weird! A simply simulation is to # out LTRIGGER so it only works as BUTTON_L2, but it'd be nice to get this axis working properly. I'm a noob at keylayouts so can anyone help? :good:
Code:
# OUYA Game Controller
key 304 BUTTON_A
key 307 BUTTON_B
key 305 BUTTON_X
key 306 BUTTON_Y
key 310 BUTTON_THUMBL
key 311 BUTTON_THUMBR
key 312 DPAD_UP
key 313 DPAD_DOWN
key 314 DPAD_LEFT
key 315 DPAD_RIGHT
key 318 BUTTON_START # Short Press
key 319 HOME # Long Press
key 309 BUTTON_R1
key 317 BUTTON_R2
key 308 BUTTON_L1
key 316 BUTTON_L2
[B]# Left and right analog shoulder triggers:
axis 0x02 LTRIGGER
axis 0x05 RTRIGGER[/B]
# Left and right analog control sticks:
axis 0x00 X flat 4096
axis 0x01 Y flat 4096
axis 0x03 Z flat 4096
axis 0x04 RZ flat 4096
Last edited: