summaryrefslogtreecommitdiff
path: root/apps/action.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-06-02 16:08:01 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-06-02 16:08:01 +0000
commitcad30d334ce4a50fe26c562467b81e184bb3fa40 (patch)
tree019554c11cbe0e77fc0879e8c0fdc5a8fa52c4c1 /apps/action.c
parentbc97952134ff2756d9397a78a9d20b7323e69436 (diff)
downloadrockbox-cad30d334ce4a50fe26c562467b81e184bb3fa40.tar.gz
rockbox-cad30d334ce4a50fe26c562467b81e184bb3fa40.zip
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
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c13
1 files changed, 7 insertions, 6 deletions
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)
281} 281}
282 282
283#ifdef HAVE_TOUCHPAD 283#ifdef HAVE_TOUCHPAD
284/* return BUTTON_NONE on error 284/* return BUTTON_NONE on error
285 BUTTON_REPEAT if repeated press 285 * BUTTON_REPEAT if repeated press
286 BUTTON_REL if its a short press 286 * BUTTON_REPEAT|BUTTON_REL if release after repeated press
287 BUTTON_TOUCHPAD otherwise 287 * BUTTON_REL if its a short press = release after press
288*/ 288 * BUTTON_TOUCHPAD if press
289 */
289int action_get_touchpad_press(short *x, short *y) 290int action_get_touchpad_press(short *x, short *y)
290{ 291{
291 static int last_data = 0; 292 static int last_data = 0;
@@ -308,7 +309,7 @@ int action_get_touchpad_press(short *x, short *y)
308 return BUTTON_REPEAT; 309 return BUTTON_REPEAT;
309 if (short_press) 310 if (short_press)
310 return BUTTON_REL; 311 return BUTTON_REL;
311 /* this is to give a BUTTON_REL after a BUTTON_REPEAT */ 312 /* This is to return a BUTTON_REL after a BUTTON_REPEAT. */
312 if (last_button & BUTTON_REL) 313 if (last_button & BUTTON_REL)
313 return BUTTON_REPEAT|BUTTON_REL; 314 return BUTTON_REPEAT|BUTTON_REL;
314 return BUTTON_TOUCHPAD; 315 return BUTTON_TOUCHPAD;