[Fuze+][Keymaps] keymaps for radio and recorder update

1) Now that recording is working a few keymaps update are required.
2) also implement the radio.c file so that fm dedicated keymaps
works.
3) implement some missing fm keymaps
4) manual updated accordingly

Change-Id: I40be3e245853ccb9ed7a5bc5a76fe4ed90772272
Reviewed-on: http://gerrit.rockbox.org/513
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
diff --git a/apps/keymaps/keymap-fuzeplus.c b/apps/keymaps/keymap-fuzeplus.c
index 43c50c0..042803d 100644
--- a/apps/keymaps/keymap-fuzeplus.c
+++ b/apps/keymaps/keymap-fuzeplus.c
@@ -169,11 +169,17 @@
 
 #ifdef CONFIG_TUNER
 static const struct button_mapping button_context_radio[]  = {
+
+    { ACTION_FM_MODE,                  BUTTON_SELECT|BUTTON_REL,           BUTTON_SELECT },
     { ACTION_FM_MENU,                  BUTTON_SELECT|BUTTON_REPEAT,        BUTTON_NONE },
-    { ACTION_FM_PRESET,                BUTTON_BOTTOMRIGHT,                 BUTTON_SELECT },
+
     { ACTION_FM_PLAY,                  BUTTON_PLAYPAUSE|BUTTON_REL,        BUTTON_PLAYPAUSE },
     { ACTION_FM_STOP,                  BUTTON_PLAYPAUSE|BUTTON_REPEAT,     BUTTON_NONE },
-    { ACTION_FM_MODE,                  BUTTON_BOTTOMLEFT,                  BUTTON_BOTTOMLEFT },
+
+    { ACTION_FM_PREV_PRESET,           BUTTON_BOTTOMLEFT|BUTTON_REL,       BUTTON_BOTTOMLEFT },
+    { ACTION_FM_NEXT_PRESET,           BUTTON_BOTTOMRIGHT|BUTTON_REL,      BUTTON_BOTTOMRIGHT },
+    { ACTION_FM_PRESET,                BUTTON_BOTTOMRIGHT|BUTTON_REPEAT,   BUTTON_NONE },
+
     { ACTION_SETTINGS_INC,             BUTTON_VOL_UP,                      BUTTON_NONE },
     { ACTION_SETTINGS_INCREPEAT,       BUTTON_VOL_UP|BUTTON_REPEAT,        BUTTON_NONE },
     { ACTION_SETTINGS_DEC,             BUTTON_VOL_DOWN,                    BUTTON_NONE },
@@ -187,7 +193,8 @@
 
 #ifdef HAVE_RECORDING
 static const struct button_mapping button_context_recscreen[]  = {
-    { ACTION_REC_PAUSE,                BUTTON_PLAYPAUSE|BUTTON_REL,        BUTTON_PLAYPAUSE },
+
+    { ACTION_REC_PAUSE,                BUTTON_PLAYPAUSE,                   BUTTON_NONE },
     { ACTION_REC_NEWFILE,              BUTTON_BOTTOMRIGHT,                 BUTTON_NONE },
     { ACTION_SETTINGS_INC,             BUTTON_RIGHT,                       BUTTON_NONE },
     { ACTION_SETTINGS_INCREPEAT,       BUTTON_RIGHT|BUTTON_REPEAT,         BUTTON_NONE },
diff --git a/apps/radio/radio.c b/apps/radio/radio.c
index 4502400..8a26c5f 100644
--- a/apps/radio/radio.c
+++ b/apps/radio/radio.c
@@ -137,6 +137,19 @@
 #define FM_PREV_PRESET
 #define FM_NEXT_PRESET
 
+#elif (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD)
+#define FM_PRESET_ADD
+#define FM_PRESET_ACTION
+#define FM_MENU
+#define FM_PRESET
+#define FM_STOP
+#define FM_MODE
+#define FM_EXIT
+#define FM_PLAY
+#define FM_RECORD
+#define FM_PREV_PRESET
+#define FM_NEXT_PRESET
+
 #endif
 
 /* presets.c needs these so keep unstatic or redo the whole thing! */
diff --git a/manual/main_menu/fmradio.tex b/manual/main_menu/fmradio.tex
index 1ba67de..b8c7629 100644
--- a/manual/main_menu/fmradio.tex
+++ b/manual/main_menu/fmradio.tex
@@ -49,6 +49,11 @@
           \opt{HAVEREMOTEKEYMAP}{& Long \ActionRCFMPrev, Long \ActionRCFMNext}
           & Seek to next station in \setting{SCAN} mode.\\
           %
+          \opt{SANSA_FUZEPLUS_PAD}{
+              \ActionFMPrevPreset, \ActionFMNextPreset
+              & Jump to next/previous preset station.\\
+          }
+          %
           \ActionFMSettingsInc, \ActionFMSettingsDec
           \opt{HAVEREMOTEKEYMAP}{
               &
diff --git a/manual/platform/keymap-sansafuzeplus.tex b/manual/platform/keymap-sansafuzeplus.tex
index 9f8c538..9b915f0 100644
--- a/manual/platform/keymap-sansafuzeplus.tex
+++ b/manual/platform/keymap-sansafuzeplus.tex
@@ -121,14 +121,15 @@
 \newcommand{\ActionRecNext}{\ButtonDown}
 
 %Button actions, FM radio context
-\newcommand{\ActionFMMenu}{\fixme{tbd}}
+\newcommand{\ActionFMMenu}{Long \ButtonSelect}
 
-\newcommand{\ActionFMPreset}{\ButtonBottomRight}
+\newcommand{\ActionFMPreset}{Long \ButtonBottomRight}
 \newcommand{\ActionFMPlay}{\ButtonPlay}
 \newcommand{\ActionFMStop}{Long \ButtonPlay}
-\newcommand{\ActionFMMode}{\ButtonBottomLeft}
+\newcommand{\ActionFMMode}{\ButtonSelect}
 \newcommand{\ActionFMExit}{\ButtonBack}
-
+\newcommand{\ActionFMPrevPreset}{\ButtonBottomLeft}
+\newcommand{\ActionFMNextPreset}{\ButtonBottomRight}
 \newcommand{\ActionFMSettingsInc}{\ActionSettingInc}
 \newcommand{\ActionFMSettingsDec}{\ActionSettingDec}
 \newcommand{\ActionFMPrev}{\ButtonLeft}