X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fgesturedetector.h;h=51af312720c17da85a4f49692a6116c9022ab5bf;hb=7302a061c57602203895b616bf54d96269c677c6;hp=a6186fdef815dce6fa56956bd8261360b1632f3f;hpb=1b33313502f837e2b0d02d3f2d129c85a8c66064;p=libs%2Fgui.git diff --git a/source/input/gesturedetector.h b/source/input/gesturedetector.h index a6186fd..51af312 100644 --- a/source/input/gesturedetector.h +++ b/source/input/gesturedetector.h @@ -13,8 +13,10 @@ enum Gesture GESTURE_NONE, GESTURE_TAP, GESTURE_TAP_2, + GESTURE_TAP_3, GESTURE_DRAG, GESTURE_DRAG_2, + GESTURE_DRAG_3, GESTURE_PINCH, GESTURE_ROTATE }; @@ -48,7 +50,6 @@ private: Touchscreen &touchscreen; TouchPoint points[MAX_POINTS]; Gesture current_gesture; - unsigned active_points; Gesture pending_tap; bool invalid_gesture; float threshold_x_sq; @@ -66,11 +67,15 @@ private: void touch_move(unsigned, float, float); void start_gesture(); void set_gesture_location(unsigned); + void set_gesture_delta(unsigned); void update_progress(); void end_gesture(); void window_resized(unsigned, unsigned); }; + +unsigned gesture_points(Gesture); + } // namespace Input } // namespace Msp