summaryrefslogtreecommitdiff
path: root/firmware/export/touchscreen.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-11-10 15:25:15 +0000
committerThomas Martitz <kugel@rockbox.org>2010-11-10 15:25:15 +0000
commit33af0dec28cf31be0ce7195b90546861efcce76f (patch)
treef106c9118c9191bff00e1468c98540787081c0e8 /firmware/export/touchscreen.h
parente134021e1b05f797cffd28c6b4ee72a963ff3812 (diff)
downloadrockbox-33af0dec28cf31be0ce7195b90546861efcce76f.tar.gz
rockbox-33af0dec28cf31be0ce7195b90546861efcce76f.zip
Touchscreen: Improved scroll threshold
Remove the hardcoded (and way too small) scroll threshold (the distance moved in pixels before we think the users wants to scroll) and replace it with something based on the actual DPI of the screen. On Android we call the API for that, on other touchscreens we reimplemented Android's formula (as of 2.2) and calculate it. Flyspray: 11727 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28548 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/touchscreen.h')
-rw-r--r--firmware/export/touchscreen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/export/touchscreen.h b/firmware/export/touchscreen.h
index 7d1eb4ac8a..a27e60c653 100644
--- a/firmware/export/touchscreen.h
+++ b/firmware/export/touchscreen.h
@@ -50,5 +50,6 @@ void touchscreen_set_mode(enum touchscreen_mode mode);
50enum touchscreen_mode touchscreen_get_mode(void); 50enum touchscreen_mode touchscreen_get_mode(void);
51void touchscreen_disable_mapping(void); 51void touchscreen_disable_mapping(void);
52void touchscreen_reset_mapping(void); 52void touchscreen_reset_mapping(void);
53int touchscreen_get_scroll_threshold(void);
53 54
54#endif /* __TOUCHSCREEN_INCLUDE_H_ */ 55#endif /* __TOUCHSCREEN_INCLUDE_H_ */