Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: climent on May 14, 2015, 02:26:15 PM

Title: Configure whether the volume buttons should respond while the buttons arelocked.
Post by: climent on May 14, 2015, 02:26:15 PM
Hi

I would like to be able to have a configuration option in which i can define if the [Buttons Locked] state affects the volume up/down buttons.

While running with my Sansa Clip Zip I would like to not be able to skip/play/pause the track but still control the volume of the output.

Any hint of what files I should be looking at in order to add that option? I am not a C programmer, so I have no idea where to start looking.
Title: Re: Configure whether the volume buttons should respond while the buttons arelocked.
Post by: gomezz on May 14, 2015, 06:10:57 PM
There is a separate option to disable the track skip buttons (though not the Play / Pause button) which I make use of.
Title: Re: Configure whether the volume buttons should respond while the buttons arelocked.
Post by: climent on May 14, 2015, 06:57:49 PM
I still would like to be able to lock the device but use the volume buttons...
Title: Re: Configure whether the volume buttons should respond while the buttons arelocked.
Post by: climent on May 15, 2015, 09:25:55 AM
Found the relevant code in action.c and wrapped a BUTTON_VOL_{UP,DOWN} condition around the relevant lines that drop the button press. So far is non-conditional, but I might add a config option, if I get to learn enough C to do it.