From def6290ba2799a657a810e13f3fb2de30f7ca44c Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Tue, 2 Nov 2010 12:15:39 +0000 Subject: [PATCH] MPIO HD200: adjust FM keymap git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28446 a1c6a512-1295-4272-9138-f99709370657 --- apps/keymaps/keymap-mpio-hd200.c | 6 +++--- apps/radio/radio.c | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/apps/keymaps/keymap-mpio-hd200.c b/apps/keymaps/keymap-mpio-hd200.c index 908a0e8f74..e3ad175010 100644 --- a/apps/keymaps/keymap-mpio-hd200.c +++ b/apps/keymaps/keymap-mpio-hd200.c @@ -150,10 +150,10 @@ static const struct button_mapping button_context_pitchscreen[] = { static const struct button_mapping button_context_radio[] = { { ACTION_FM_MENU, BUTTON_FUNC|BUTTON_REPEAT, BUTTON_NONE }, { ACTION_FM_PRESET, BUTTON_FUNC|BUTTON_REL, BUTTON_FUNC }, -/* { ACTION_FM_RECORD, BUTTON_, BUTTON_ }, */ +/* { ACTION_FM_RECORD, BUTTON_, BUTTON_ }, */ /* { ACTION_FM_FREEZE, BUTTON_, BUTTON_ }, */ - { ACTION_FM_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY }, - { ACTION_FM_MODE, BUTTON_FUNC, BUTTON_NONE }, + { ACTION_FM_STOP, BUTTON_REC|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_FM_MODE, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY }, { ACTION_FM_EXIT, BUTTON_REC|BUTTON_REL, BUTTON_REC }, { ACTION_FM_PLAY, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY }, /* { ACTION_FM_RECORD_DBLPRE, BUTTON_, BUTTON_ }, */ diff --git a/apps/radio/radio.c b/apps/radio/radio.c index 5fe1fabef0..7cc676b9a4 100644 --- a/apps/radio/radio.c +++ b/apps/radio/radio.c @@ -134,6 +134,14 @@ #define FM_PLAY #define FM_MODE +#elif (CONFIG_KEYPAD == MPIO_HD200_PAD) +#define FM_MENU +#define FM_STOP +#define FM_EXIT +#define FM_PLAY +#define FM_MODE +#define FM_STOP + #endif /* presets.c needs these so keep unstatic or redo the whole thing! */