/* Half a second is a popular duration of double click in UI */
static const unsigned int __CLICK_DURATION = 500 * __MIL_SEC;
static const unsigned int __DOUBLE_CLICK_DURATION = __CLICK_DURATION;
+#if (__cplusplus >= 201103L)
+ static constexpr double __TAP_DURATION = 0.5;
+ /* Half a second is a popular duration of double click in UI
+ * however, sometimes it is 1 second */
+ static constexpr double __LONG_PRESS_DURATION = 0.5;
+#else
static const double __TAP_DURATION = 0.5;
/* Half a second is a popular duration of double click in UI
* however, sometimes it is 1 second */
static const double __LONG_PRESS_DURATION = 0.5;
+#endif
public:
/* Is transition performing right now */
bool transiting;
protected:
+#if (__cplusplus >= 201103L)
+ static constexpr double __GEO_ACCURACY = 0.00001;
+ static constexpr double __ZOOM_ACCURACY = 0.1;
+ static constexpr double __ROTATE_ACCURACY = 0.5;
+#else
static const double __GEO_ACCURACY = 0.00001;
static const double __ZOOM_ACCURACY = 0.1;
static const double __ROTATE_ACCURACY = 0.5;
+#endif
public:
inertial_camera(maps_view_h view);
~inertial_camera();
unsigned transiting_start[MAX_FINGERS];
double _dt[MAX_FINGERS];
private:
+#if (__cplusplus >= 201103L)
+ static constexpr double __ACCURACY = 1;
+#else
static const double __ACCURACY = 1;
+#endif
public:
inertial_gesture(maps_view_h view);
~inertial_gesture();