diff options
Diffstat (limited to 'apps/keymaps')
-rw-r--r-- | apps/keymaps/keymap-ypr0.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-ypr0.c b/apps/keymaps/keymap-ypr0.c index b5706760ba..306fd91e34 100644 --- a/apps/keymaps/keymap-ypr0.c +++ b/apps/keymaps/keymap-ypr0.c | |||
@@ -212,7 +212,24 @@ static const struct button_mapping button_context_keyboard[] = { | |||
212 | }; /* button_context_keyboard */ | 212 | }; /* button_context_keyboard */ |
213 | 213 | ||
214 | static const struct button_mapping button_context_radio[] = { | 214 | static const struct button_mapping button_context_radio[] = { |
215 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) | 215 | { ACTION_FM_MENU, BUTTON_SELECT | BUTTON_REPEAT, BUTTON_NONE }, |
216 | { ACTION_FM_PRESET, BUTTON_MENU | BUTTON_REPEAT, BUTTON_NONE }, | ||
217 | { ACTION_FM_STOP, BUTTON_POWER | BUTTON_REL, BUTTON_POWER }, | ||
218 | { ACTION_FM_MODE, BUTTON_MENU | BUTTON_REL, BUTTON_MENU }, | ||
219 | { ACTION_FM_EXIT, BUTTON_BACK | BUTTON_REL, BUTTON_BACK }, | ||
220 | { ACTION_FM_PLAY, BUTTON_SELECT | BUTTON_REL, BUTTON_SELECT }, | ||
221 | { ACTION_FM_NEXT_PRESET, BUTTON_USER | BUTTON_RIGHT, BUTTON_NONE }, | ||
222 | { ACTION_FM_PREV_PRESET, BUTTON_USER | BUTTON_LEFT, BUTTON_NONE }, | ||
223 | /* Volume */ | ||
224 | { ACTION_SETTINGS_INC, BUTTON_UP | BUTTON_REPEAT, BUTTON_NONE }, | ||
225 | { ACTION_SETTINGS_INCREPEAT, BUTTON_UP, BUTTON_NONE }, | ||
226 | { ACTION_SETTINGS_DEC, BUTTON_DOWN | BUTTON_REPEAT, BUTTON_NONE }, | ||
227 | { ACTION_SETTINGS_DECREPEAT, BUTTON_DOWN, BUTTON_NONE }, | ||
228 | /* Tuning */ | ||
229 | { ACTION_STD_PREV, BUTTON_LEFT, BUTTON_NONE }, | ||
230 | { ACTION_STD_PREVREPEAT, BUTTON_LEFT | BUTTON_REPEAT, BUTTON_NONE }, | ||
231 | { ACTION_STD_NEXT, BUTTON_RIGHT, BUTTON_NONE }, | ||
232 | { ACTION_STD_NEXTREPEAT, BUTTON_RIGHT | BUTTON_REPEAT, BUTTON_NONE }, | ||
216 | }; /* button_context_radio */ | 233 | }; /* button_context_radio */ |
217 | 234 | ||
218 | const struct button_mapping* get_context_mapping(int context) | 235 | const struct button_mapping* get_context_mapping(int context) |