Rockbox Development > Starting Development and Compiling

Remapping keys in H1xx

(1/1)

ShinyFalcon:
I am interested in remapping two of the keys in my H120 dap, since I do not like the loud clicky noise the joystick makes when I press on it.  :P

I'm looking at button-h100.c, and I think see where I can swap two values, but I don't know what to swap. I'm thinking of swapping the stop button and the select button.

It probably isn't possible if it's hard wired to the hardware, is it?

LinusN:
I think you should be able to swap those two in button-h100.c. Another approach would be to edit the keymap in apps/keymaps/keymap-h1x0_h3x0.c.

ShinyFalcon:
Looks like editing the keymap would be the way to go.

I can keep the power off function when I hold stop and get the menu by pressing stop without holding it down. I will have to modify the following:

action menu, button mode | button release, button mode // original
action menu, button stop | button release, button stop // press stop to bring up menu
action stop, button select | button release, button select // press select to stop
action context, button stop | button repeat, button stop // sound context menu, keep consistent with stop

It would be quite troublesome if I would have to compile rockbox everytime a new build comes out. Is there a patch of some type/hex editing that I can do?

Navigation

[0] Message Index

Go to full version