X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Finput%2Fgesturedetector.h;h=8804dd1abc76a073439a1dae8d8fb64bd33cc4ce;hb=b99a9eb342d0f6ba5509c6d9f8ab0b0b5d5d2979;hp=7f9726c8295ce5d223b93f241dd013f3918cabd9;hpb=294c354ae3b1f26887c37f866f082e52c08d80f1;p=libs%2Fgui.git diff --git a/source/input/gesturedetector.h b/source/input/gesturedetector.h index 7f9726c..8804dd1 100644 --- a/source/input/gesturedetector.h +++ b/source/input/gesturedetector.h @@ -1,6 +1,7 @@ #ifndef MSP_INPUT_GESTUREDETECTOR_H_ #define MSP_INPUT_GESTUREDETECTOR_H_ +#include #include "device.h" namespace Msp { @@ -27,13 +28,10 @@ provided for each type of gesture. Axes 0 and 1 indicate the starting position of the gesture; axes 2 and 3 track its progress. The progress axis may exhibit absolute values greater than one. */ -class GestureDetector: public Device +class MSPGUI_API GestureDetector: public Device { private: - enum - { - MAX_POINTS = 3 - }; + static constexpr size_t MAX_POINTS = 3; struct TouchPoint { @@ -74,7 +72,7 @@ private: }; -unsigned gesture_points(Gesture); +MSPGUI_API unsigned gesture_points(Gesture); } // namespace Input } // namespace Msp