diff options
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 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 | */ | ||
289 | int action_get_touchpad_press(short *x, short *y) | 290 | int 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; |