diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-08-23 09:46:38 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-08-23 09:46:38 +0000 |
commit | 1392dc2144a4b1810ba5c421f54e05dc1a3a74c7 (patch) | |
tree | 7f7f7d6dd6ce00e8146896456549441d4e8153d7 /apps/gui/bitmap/list.c | |
parent | 965d2af61f5035dcf5179b8539785de641a9f015 (diff) | |
download | rockbox-1392dc2144a4b1810ba5c421f54e05dc1a3a74c7.tar.gz rockbox-1392dc2144a4b1810ba5c421f54e05dc1a3a74c7.zip |
Commit FS#9308: differentiate between TOUCHPAD & TOUCHSCREEN
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18338 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/bitmap/list.c')
-rw-r--r-- | apps/gui/bitmap/list.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 5a8bc69450..a3f5da92ea 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c | |||
@@ -285,17 +285,17 @@ void list_draw(struct screen *display, struct viewport *parent, | |||
285 | } | 285 | } |
286 | 286 | ||
287 | 287 | ||
288 | #if defined(HAVE_TOUCHPAD) | 288 | #if defined(HAVE_TOUCHSCREEN) |
289 | /* This needs to be fixed if we ever get more than 1 touchscreen on a target. | 289 | /* This needs to be fixed if we ever get more than 1 touchscreen on a target. |
290 | * This also assumes the whole screen is used, which is a bad assumption but | 290 | * This also assumes the whole screen is used, which is a bad assumption but |
291 | * fine until customizable lists comes in... | 291 | * fine until customizable lists comes in... |
292 | */ | 292 | */ |
293 | static bool scrolling=false; | 293 | static bool scrolling=false; |
294 | 294 | ||
295 | unsigned gui_synclist_do_touchpad(struct gui_synclist * gui_list, struct viewport *parent) | 295 | unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list, struct viewport *parent) |
296 | { | 296 | { |
297 | short x, y; | 297 | short x, y; |
298 | unsigned button = action_get_touchpad_press(&x, &y); | 298 | unsigned button = action_get_touchscreen_press(&x, &y); |
299 | int line; | 299 | int line; |
300 | struct screen *display = &screens[SCREEN_MAIN]; | 300 | struct screen *display = &screens[SCREEN_MAIN]; |
301 | if (button == BUTTON_NONE) | 301 | if (button == BUTTON_NONE) |