summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pictureflow
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-07-04 16:59:49 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-07-04 16:59:49 +0000
commita967308799427267920c26d9b2ef0a7f628775ba (patch)
treec5b1b2487861ed1f5e01962678a3b4452bac5009 /apps/plugins/pictureflow
parentc3bc8fda8019c69c1bf9cd74539df07db527eebc (diff)
downloadrockbox-a967308799427267920c26d9b2ef0a7f628775ba.tar.gz
rockbox-a967308799427267920c26d9b2ef0a7f628775ba.tar.bz2
rockbox-a967308799427267920c26d9b2ef0a7f628775ba.zip
Replace HAVE_SCROLLWHEEL in PictureFlow with USE_CORE_PREVNEXT, defined on targets where special horizontal-scroll mappings are broken or make no sense.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21636 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pictureflow')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 11822baacd..b3cc7e4fb4 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -56,7 +56,12 @@ PLUGIN_HEADER
#define PF_MENU ACTION_STD_MENU
#define PF_QUIT (LAST_ACTION_PLACEHOLDER + 1)
-#if !defined(HAVE_SCROLLWHEEL)
+#if defined(HAVE_SCROLLWHEEL) || CONFIG_KEYPAD == IRIVER_H10_PAD || \
+ CONFIG_KEYPAD == SAMSUNG_YH_PAD
+#define USE_CORE_PREVNEXT
+#endif
+
+#ifndef USE_CORE_PREVNEXT
/* scrollwheel targets use the wheel, just as they do in lists,
* so there's no need for a special context,
* others use left/right here too (as oppsed to up/down in lists) */
@@ -92,7 +97,7 @@ const struct button_mapping pf_context_album_scroll[] =
#endif
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_PLUGIN|1)
};
-#endif /* !defined(HAVE_SCROLLWHEEL) */
+#endif /* !USE_CORE_PREVNEXT */
const struct button_mapping pf_context_buttons[] =
{
@@ -148,7 +153,7 @@ const struct button_mapping pf_context_buttons[] =
};
const struct button_mapping *pf_contexts[] =
{
-#if !defined(HAVE_SCROLLWHEEL)
+#ifndef USE_CORE_PREVNEXT
pf_context_album_scroll,
#endif
pf_context_buttons
@@ -2647,7 +2652,7 @@ int main(void)
/*/ Handle buttons */
button = rb->get_custom_action(CONTEXT_PLUGIN
-#if !defined(HAVE_SCROLLWHEEL)
+#ifndef USE_CORE_PREVNEXT
|(pf_state == pf_show_tracks ? 1 : 0)
#endif
,instant_update ? 0 : HZ/16,