From 1392dc2144a4b1810ba5c421f54e05dc1a3a74c7 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Sat, 23 Aug 2008 09:46:38 +0000 Subject: Commit FS#9308: differentiate between TOUCHPAD & TOUCHSCREEN git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18338 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/pong.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugins/pong.c') diff --git a/apps/plugins/pong.c b/apps/plugins/pong.c index 60d704337f..27721fcfab 100644 --- a/apps/plugins/pong.c +++ b/apps/plugins/pong.c @@ -155,7 +155,7 @@ PLUGIN_HEADER #error No keymap defined! #endif -#ifdef HAVE_TOUCHPAD +#ifdef HAVE_TOUCHSCREEN #ifndef PONG_QUIT #define PONG_QUIT BUTTON_TOPMIDDLE #endif @@ -398,7 +398,7 @@ int keys(struct pong *p) #endif /* number of ticks this function will loop reading keys */ -#ifndef HAVE_TOUCHPAD +#ifndef HAVE_TOUCHSCREEN int time = 4; #else int time = 1; @@ -409,9 +409,9 @@ int keys(struct pong *p) while(end > *rb->current_tick) { key = rb->button_get_w_tmo(end - *rb->current_tick); -#ifdef HAVE_TOUCHPAD +#ifdef HAVE_TOUCHSCREEN short touch_x, touch_y; - if(key & BUTTON_TOUCHPAD) + if(key & BUTTON_TOUCHSCREEN) { touch_x = rb->button_get_data() >> 16; touch_y = rb->button_get_data() & 0xFFFF; -- cgit v1.2.3