Mercurial > hg > orthanc-stone
diff Framework/Scene2DViewport/OneGesturePointerTracker.h @ 727:853e30d17cae
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 May 2019 11:45:06 +0200 |
parents | 28b9e3a54200 |
children | e42b491f1fb2 |
line wrap: on
line diff
--- a/Framework/Scene2DViewport/OneGesturePointerTracker.h Tue May 21 11:43:25 2019 +0200 +++ b/Framework/Scene2DViewport/OneGesturePointerTracker.h Tue May 21 11:45:06 2019 +0200 @@ -26,14 +26,15 @@ { /** This base is class allows to write simple trackers that deal with single - drag gestures. It is *not* suitables for multi-state trackers where various - mouse operations need to be handled. + drag gestures with only one touch. It is *not* suitable for multi-touch and + multi-state trackers where various mouse operations need to be handled. In order to write such a tracker: - subclass this class - you may store the initial click/touch position in the constructor - implement PointerMove to react to pointer/touch events - implement Cancel to restore the state at initial tracker creation time + */ class OneGesturePointerTracker : public IFlexiblePointerTracker { @@ -49,6 +50,7 @@ private: ViewportControllerWPtr controllerW_; bool alive_; + int currentTouchCount_; }; }