Author Topic: [GPD Q9] How to remap the volume buttons to L3 & R3?  (Read 353 times)

Homebound (OP)

[GPD Q9] How to remap the volume buttons to L3 & R3?
« on: March 14, 2017, 02:54:56 pm »
I know I need to edit /system/usr/keylayout/Generic.k when I edit the Generic.k file I change

Code: [Select]
key 114   VOLUME_DOWN
key 115   VOLUME_UP

to

Code: [Select]
key 114   BUTTON_R3
key 115   BUTTON_L3

Unfortunately nothing happens. I've tested it in GTA: SA and both volume up and down still functions as volume control. Can anyone help me?

UPDATE:

I edited the Generic.k file to

Code: [Select]
#key 114   VOLUME_DOWN
key 114   BUTTON_8
#key 115   VOLUME_UP
key 115   BUTTON_9

& edited rk29-keypad.kl to

Code: [Select]
#key 114   VOLUME_DOWN
key 114   BUTTON_8
#key 115   VOLUME_UP
key 115   BUTTON_9

The only problem now is that none of the physical buttons on my unit even works anymore. All I can use now is the touchscreen. Is it even possible to configure the L3 & R3 buttons on this device? At this point I've given up. I don't have know what else to try.
« Last Edit: March 14, 2017, 11:38:06 pm by Homebound »

skelton

  • *****
  • Posts: 6178
Re: [GPD Q9] How to remap the volume buttons to L3 & R3?
« Reply #1 on: March 14, 2017, 09:40:59 pm »
Try with tincore keymapper. It allows you to change keycode for any key. It's a bit tricky to use though, but better than editing kl files. L3 and r3 in Android are generally Button_thumbl and button_thumbr, instead of button of button_l3 and r3 which are not generally used in any joystick driver. If you re-edit the kl files try with button_thumbl and button_thumbr, and are members to set correct permissions for the file.
« Last Edit: March 14, 2017, 09:45:04 pm by skelton »
Retired

Homebound (OP)

Re: [GPD Q9] How to remap the volume buttons to L3 & R3?
« Reply #2 on: March 14, 2017, 11:32:39 pm »
Try with tincore keymapper. It allows you to change keycode for any key. It's a bit tricky to use though, but better than editing kl files. L3 and r3 in Android are generally Button_thumbl and button_thumbr, instead of button of button_l3 and r3 which are not generally used in any joystick driver. If you re-edit the kl files try with button_thumbl and button_thumbr, and are members to set correct permissions for the file.

Thank you!!!! That actually worked. I edited the Generic.k file to

Code: [Select]
#key 114   VOLUME_DOWN
key 114   BUTTON_THUMBL
#key 115   VOLUME_UP
key 115   BUTTON_THUMBR

& edited rk29-keypad.kl to

Code: [Select]
#key 114   VOLUME_DOWN
key 114   BUTTON_THUMBL
#key 115   VOLUME_UP
key 115   BUTTON_THUMBR

I can finally play games like GTA SA now. Thanks a million for the tip and for the amazing legacy ROM!

 

Post a new topic