Support and General Use > Hardware
Fuze+ Make volume keys work while in Hold mode? [SOLVED]
(1/1)
lee321987:
Would it be possible to make the volume keys operational when the Fuze+ is in Hold mode?
How about to change the behavior of those keys _only_ while in Hold mode?
EXAMPLE: when hold mode is activated VOLUME-UP key becomes a play/pause key, and VOLUME-DOWN key becomes a rewind key?
I understand that if it's possible I would have to do some programming in the source code.
Falco98:
Hold mode on the Fuze+ doesn't actually disable button presses in a hardware sense (since pressing anything causes the screen to turn back on and advise you that the buttons are locked), so my best guess is that the buttons are just re-mapped to not do much when hold is activated, and therefore it should be possible for you to code a patch re-mapping the side volume buttons to do whatever you want when hold is engaged.
pamaury:
This thread is a bit dead but I want to say I have a patch here:
http://gerrit.rockbox.org/r/#/c/760/
Feel free to try it.
lee321987:
THANKS A TON, PAMAURY!
If anyone wants to change the action of the volume buttons (while in Hold mode) to 'play/pause' and 'seek-back/skip-back', after applying pamaury's patch, in 'apps/keymaps/keymap-fuzeplus.c' there is a struct called 'button_context_wps_locked' on line 102. Change it to this:
--- Code: ---static const struct button_mapping button_context_wps_locked[] = {
{ ACTION_WPS_PLAY, BUTTON_VOL_UP, BUTTON_NONE },
{ ACTION_WPS_SKIPPREV, BUTTON_VOL_DOWN|BUTTON_REL, BUTTON_VOL_DOWN },
{ ACTION_WPS_SEEKBACK, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_WPS_STOPSEEK, BUTTON_VOL_DOWN|BUTTON_REL, BUTTON_VOL_DOWN|BUTTON_REPEAT },
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
--- End code ---
Navigation
[0] Message Index
Go to full version