From 944219bb7764206b59a5ea6e44ec52db39793161 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Fri, 30 May 2008 22:55:24 +0000 Subject: (Simulator) Touchscreen improvements. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17662 a1c6a512-1295-4272-9138-f99709370657 --- apps/action.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/action.c') diff --git a/apps/action.c b/apps/action.c index 89d6a7ae7a..5d0f994862 100644 --- a/apps/action.c +++ b/apps/action.c @@ -308,6 +308,9 @@ int action_get_touchpad_press(short *x, short *y) return BUTTON_REPEAT; if (short_press) return BUTTON_REL; + /* this is to give a BUTTON_REL after a BUTTON_REPEAT */ + if (last_button & BUTTON_REL) + return BUTTON_REL; return BUTTON_TOUCHPAD; } #endif -- cgit v1.2.3