diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-10-31 11:11:46 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-10-31 11:11:46 +0000 |
commit | b673ae2c46129d6994b61a351a1567c56f4aef82 (patch) | |
tree | 4253dd1daa90384e3f87443f497453c265cbbb0f /apps/gui/list.h | |
parent | eaff333bf526225cfca84cd686fe5332b852e506 (diff) | |
download | rockbox-b673ae2c46129d6994b61a351a1567c56f4aef82.tar.gz rockbox-b673ae2c46129d6994b61a351a1567c56f4aef82.zip |
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
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r-- | apps/gui/list.h | 4 |
1 files changed, 3 insertions, 1 deletions
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, | |||
176 | 176 | ||
177 | #if defined(HAVE_TOUCHSCREEN) | 177 | #if defined(HAVE_TOUCHSCREEN) |
178 | /* this needs to be fixed if we ever get more than 1 touchscreen on a target */ | 178 | /* this needs to be fixed if we ever get more than 1 touchscreen on a target */ |
179 | unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list); | 179 | extern unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list); |
180 | /* only for private use in gui/list.c */ | ||
181 | extern void _gui_synclist_stop_kinetic_scrolling(void); | ||
180 | #endif | 182 | #endif |
181 | 183 | ||
182 | /* If the list has a pending postponed scheduled announcement, that | 184 | /* If the list has a pending postponed scheduled announcement, that |