From 44cbd337e9b77e521859865e806b3bedfe159746 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Mon, 16 Oct 2006 18:11:56 +0000 Subject: Add keymap for A-B repeat on H10 and enable support for it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11238 a1c6a512-1295-4272-9138-f99709370657 --- apps/keymaps/keymap-h10.c | 4 ++++ firmware/export/config-h10.h | 2 ++ firmware/export/config-h10_5gb.h | 2 ++ 3 files changed, 8 insertions(+) diff --git a/apps/keymaps/keymap-h10.c b/apps/keymaps/keymap-h10.c index ead87b87fe..45dde38844 100644 --- a/apps/keymaps/keymap-h10.c +++ b/apps/keymaps/keymap-h10.c @@ -71,6 +71,10 @@ const struct button_mapping button_context_wps[] = { { ACTION_WPS_SEEKFWD, BUTTON_FF|BUTTON_REPEAT, BUTTON_NONE }, { ACTION_WPS_STOPSEEK, BUTTON_FF|BUTTON_REL, BUTTON_FF|BUTTON_REPEAT }, + { ACTION_WPS_ABSETB_NEXTDIR, BUTTON_POWER|BUTTON_FF, BUTTON_POWER }, + { ACTION_WPS_ABSETA_PREVDIR, BUTTON_POWER|BUTTON_REW, BUTTON_POWER }, + { ACTION_WPSAB_RESET, BUTTON_POWER|BUTTON_PLAY, BUTTON_POWER }, + { ACTION_WPS_VOLDOWN, BUTTON_SCROLL_DOWN, BUTTON_NONE }, { ACTION_WPS_VOLDOWN, BUTTON_SCROLL_DOWN|BUTTON_REPEAT,BUTTON_NONE }, { ACTION_WPS_VOLUP, BUTTON_SCROLL_UP, BUTTON_NONE }, diff --git a/firmware/export/config-h10.h b/firmware/export/config-h10.h index d29bd6c22d..dbb7583304 100644 --- a/firmware/export/config-h10.h +++ b/firmware/export/config-h10.h @@ -70,6 +70,8 @@ #define BATTERY_CAPACITY_DEFAULT 1550 /* default battery capacity */ +#define AB_REPEAT_ENABLE 1 + #ifndef SIMULATOR /* Define this if you have a PortalPlayer PP5020 */ diff --git a/firmware/export/config-h10_5gb.h b/firmware/export/config-h10_5gb.h index e40fdeab86..6fcc0f29f0 100644 --- a/firmware/export/config-h10_5gb.h +++ b/firmware/export/config-h10_5gb.h @@ -65,6 +65,8 @@ #define BATTERY_CAPACITY_DEFAULT 820 /* default battery capacity */ +#define AB_REPEAT_ENABLE 1 + #ifndef SIMULATOR /* Define this if you have a PortalPlayer PP5020 */ -- cgit v1.2.3