diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-06-02 16:08:01 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-06-02 16:08:01 +0000 |
| commit | cad30d334ce4a50fe26c562467b81e184bb3fa40 (patch) | |
| tree | 019554c11cbe0e77fc0879e8c0fdc5a8fa52c4c1 /apps/action.c | |
| parent | bc97952134ff2756d9397a78a9d20b7323e69436 (diff) | |
| download | rockbox-cad30d334ce4a50fe26c562467b81e184bb3fa40.zip rockbox-cad30d334ce4a50fe26c562467b81e184bb3fa40.tar.gz rockbox-cad30d334ce4a50fe26c562467b81e184bb3fa40.tar.bz2 rockbox-cad30d334ce4a50fe26c562467b81e184bb3fa40.tar.xz | |
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.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/action.c b/apps/action.c index 0614443..2c089ee 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; |