]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/gesturedetector.h
Refactor GestureDetector logic
[libs/gui.git] / source / input / gesturedetector.h
index a6186fdef815dce6fa56956bd8261360b1632f3f..f39fdce98e609f5b345d02efdcb9c9a5fe8be9c7 100644 (file)
@@ -48,7 +48,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 +65,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