Permalink
Browse files

Modified Gestures sample app to correctly display information from a …

…GESTURE_DOUBLE_TAP event.
  • Loading branch information...
1 parent 4aea66e commit 0cde6b5a5bbc6d60215f85b7a0eea67498e8a51a Mike Chepesky committed Jun 21, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 Gesture/main.c
View
@@ -110,8 +110,9 @@ gesture_callback(gesture_base_t* gesture, mtouch_event_t* event, void* param, in
break;
}
case GESTURE_DOUBLE_TAP: {
- gesture_tap_t* d_tap = (gesture_tap_t*)gesture;
- fprintf(stderr,"Double tap x:%d y:%d", d_tap->touch_coords.x, d_tap->touch_coords.y);
+ gesture_double_tap_t* d_tap = (gesture_double_tap_t*)gesture;
+ fprintf(stderr,"Double tap first_x:%d first_y:%d second_x:%d second_y:%d",
+ d_tap->first_touch.x, d_tap->first_touch.y, d_tap->second_touch.x, d_tap->second_touch.y);
break;
}
default: {

0 comments on commit 0cde6b5

Please sign in to comment.