summaryrefslogtreecommitdiffstats
path: root/apps/menus/display_menu.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-07-22 21:02:24 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-07-22 21:02:24 +0000
commit873e0fd1ef2ad0e8e1d74a9c9a3b0ed0cdfee35e (patch)
tree29ca956fb87b7f8c17cb5061d3afcfda70c44e4c /apps/menus/display_menu.c
parent3213d4a0f5d3aea725bb9ddf34ae0ec38ca4b097 (diff)
downloadrockbox-873e0fd1ef2ad0e8e1d74a9c9a3b0ed0cdfee35e.tar.gz
rockbox-873e0fd1ef2ad0e8e1d74a9c9a3b0ed0cdfee35e.tar.bz2
rockbox-873e0fd1ef2ad0e8e1d74a9c9a3b0ed0cdfee35e.zip
Wheel acceleration for e200. A general acceleration interface intended for use on any scroll target and by any code. A general interface to obtain data associated with most recently dequeued button presses and actions. Use #define HAVE_SCROLLWHEEL and set appropriate constants, values in the scroller driver that feel right.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13959 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus/display_menu.c')
-rw-r--r--apps/menus/display_menu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c
index 5114feafb0..92afc304db 100644
--- a/apps/menus/display_menu.c
+++ b/apps/menus/display_menu.c
@@ -313,9 +313,11 @@ MENUITEM_SETTING(jump_scroll, &global_settings.jump_scroll, NULL);
MENUITEM_SETTING(jump_scroll_delay, &global_settings.jump_scroll_delay, NULL);
#endif
/* list acceleration */
+#ifndef HAVE_SCROLLWHEEL
MENUITEM_SETTING(list_accel_start_delay,
&global_settings.list_accel_start_delay, NULL);
MENUITEM_SETTING(list_accel_wait, &global_settings.list_accel_wait, NULL);
+#endif /* HAVE_SCROLLWHEEL */
#ifdef HAVE_LCD_BITMAP
int screenscroll_callback(int action,const struct menu_item_ex *this_item)
{
@@ -350,7 +352,9 @@ MAKE_MENU(scroll_settings_menu, ID2P(LANG_SCROLL_MENU), 0, Icon_NOICON,
&offset_out_of_view, &screen_scroll_step,
#endif
&scroll_paginated,
+#ifndef HAVE_SCROLLWHEEL
&list_accel_start_delay, &list_accel_wait
+#endif
);
/* SCROLL MENU */
/***********************************/