1
0
Fork 0
forked from len0rd/rockbox

Fix FMS Volume-long press Up and Down button actions for SANSA CLIP derivatives

When long pressing PLAY/PAUSE and FM_MODE on devices that use the clip keymap
 the volume changes in addition to toggling PLAY/PAUSE and SCAN/SEEK,this patch
 removes the volume functionality as these devices provide dedicated volume
 buttons

Change-Id: I3ab5af6da07900417c31c7a1036343b32b950e4e
This commit is contained in:
William Wilgus 2016-12-21 23:41:20 +01:00
parent 0c06e5fe90
commit 8db6d2004a

View file

@ -242,8 +242,9 @@ static const struct button_mapping button_context_recscreen[] = {
/** FM Radio Screen **/ /** FM Radio Screen **/
static const struct button_mapping button_context_radio[] = { static const struct button_mapping button_context_radio[] = {
{ ACTION_NONE, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP},
{ ACTION_NONE, BUTTON_SELECT, BUTTON_NONE }, { ACTION_NONE, BUTTON_SELECT, BUTTON_NONE },
{ ACTION_NONE, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_NONE, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_FM_MODE, BUTTON_DOWN, BUTTON_NONE }, { ACTION_FM_MODE, BUTTON_DOWN, BUTTON_NONE },
{ ACTION_FM_PRESET, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, { ACTION_FM_PRESET, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT },
{ ACTION_FM_STOP, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, { ACTION_FM_STOP, BUTTON_POWER|BUTTON_REL, BUTTON_POWER },