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 --- firmware/export/config.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware') diff --git a/firmware/export/config.h b/firmware/export/config.h index 8892600ece..d005aae976 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -901,6 +901,12 @@ Lyre prototype 1 */ #endif #endif /* HAVE_HEADPHONE_DETECTION */ +#ifdef HAVE_TOUCHSCREEN +/* Timeout objects required for kinetic list scrolling */ +#undef INCLUDE_TIMEOUT_API +#define INCLUDE_TIMEOUT_API +#endif /* HAVE_TOUCHSCREEN */ + #if defined(HAVE_USB_CHARGING_ENABLE) && defined(HAVE_USBSTACK) /* USB charging support in the USB stack requires timeout objects */ #ifndef INCLUDE_TIMEOUT_API -- cgit v1.2.3