From b673ae2c46129d6994b61a351a1567c56f4aef82 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 31 Oct 2010 11:11:46 +0000 Subject: FS#11686 - Kinetic list scrolling for touchscreen This adds kinetic scrolling to to lists on touchscreen targets and RaaA, like all other OSes on touchscreens have. It's only enabled in the absolute point mode, so for non-touchscreen and in grid mode nothing changes. Kinetic scrolling means that the list keeps scrolling (but is decelerating) after you leave the touchscreen with the finger. Redraw interval and deceleration is hardcoded for now but could be made configurable if desired. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28408 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/gui/list.h') diff --git a/apps/gui/list.h b/apps/gui/list.h index 6deac2de0d..84673d866c 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -176,7 +176,9 @@ extern bool gui_synclist_do_button(struct gui_synclist * lists, #if defined(HAVE_TOUCHSCREEN) /* this needs to be fixed if we ever get more than 1 touchscreen on a target */ -unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list); +extern unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list); +/* only for private use in gui/list.c */ +extern void _gui_synclist_stop_kinetic_scrolling(void); #endif /* If the list has a pending postponed scheduled announcement, that -- cgit v1.2.3