From cad30d334ce4a50fe26c562467b81e184bb3fa40 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Mon, 2 Jun 2008 16:08:01 +0000 Subject: 1) Make touchscreen interface more intuitive 2) Comment the code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17676 a1c6a512-1295-4272-9138-f99709370657 --- apps/action.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'apps/action.c') diff --git a/apps/action.c b/apps/action.c index 0614443bac..2c089ee699 100644 --- a/apps/action.c +++ b/apps/action.c @@ -281,11 +281,12 @@ int get_action_statuscode(int *button) } #ifdef HAVE_TOUCHPAD -/* return BUTTON_NONE on error - BUTTON_REPEAT if repeated press - BUTTON_REL if its a short press - BUTTON_TOUCHPAD otherwise -*/ +/* return BUTTON_NONE on error + * BUTTON_REPEAT if repeated press + * BUTTON_REPEAT|BUTTON_REL if release after repeated press + * BUTTON_REL if its a short press = release after press + * BUTTON_TOUCHPAD if press + */ int action_get_touchpad_press(short *x, short *y) { static int last_data = 0; @@ -308,7 +309,7 @@ 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 */ + /* This is to return a BUTTON_REL after a BUTTON_REPEAT. */ if (last_button & BUTTON_REL) return BUTTON_REPEAT|BUTTON_REL; return BUTTON_TOUCHPAD; -- cgit v1.2.3