aboutsummaryrefslogtreecommitdiff
path: root/src/gestures.c
diff options
context:
space:
mode:
authorvictorfisac <victorfisac@gmail.com>2016-06-07 23:41:34 +0200
committervictorfisac <victorfisac@gmail.com>2016-06-07 23:41:34 +0200
commitf97f39987c1b35205eb6824d017a1c288ce64a2d (patch)
tree843d8839997deb76b541579b0aa6591a6753108d /src/gestures.c
parent11cf455fe0d2c956043aa70f7d8256c4a339b430 (diff)
parent5631f822bd9195d494915d3b2bb80caf47a65068 (diff)
downloadraylib-f97f39987c1b35205eb6824d017a1c288ce64a2d.tar.gz
raylib-f97f39987c1b35205eb6824d017a1c288ce64a2d.zip
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'src/gestures.c')
-rw-r--r--src/gestures.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gestures.c b/src/gestures.c
index d72aaf4e..90371620 100644
--- a/src/gestures.c
+++ b/src/gestures.c
@@ -28,30 +28,30 @@
#if defined(GESTURES_STANDALONE)
#include "gestures.h"
#else
- #include "raylib.h" // Required for typedef(s): Vector2, Gestures
+ #include "raylib.h" // Required for: Vector2, Gestures
#endif
-#include <math.h> // Used for: atan2(), sqrt()
-#include <stdint.h> // Defines int32_t, int64_t
+#include <math.h> // Required for: atan2(), sqrt()
+#include <stdint.h> // Required for: uint64_t
#if defined(_WIN32)
// Functions required to query time on Windows
int __stdcall QueryPerformanceCounter(unsigned long long int *lpPerformanceCount);
int __stdcall QueryPerformanceFrequency(unsigned long long int *lpFrequency);
#elif defined(__linux)
- #include <sys/time.h> // Declares storage size of ‘now’
- #include <time.h> // Used for clock functions
+ #include <sys/time.h> // Required for: timespec
+ #include <time.h> // Required for: clock_gettime()
#endif
//----------------------------------------------------------------------------------
// Defines and Macros
//----------------------------------------------------------------------------------
-#define FORCE_TO_SWIPE 0.0005f // Measured in normalized pixels / time
-#define MINIMUM_DRAG 0.015f // Measured in normalized pixels [0..1]
-#define MINIMUM_PINCH 0.005f // Measured in normalized pixels [0..1]
+#define FORCE_TO_SWIPE 0.0005f // Measured in normalized screen units/time
+#define MINIMUM_DRAG 0.015f // Measured in normalized screen units (0.0f to 1.0f)
+#define MINIMUM_PINCH 0.005f // Measured in normalized screen units (0.0f to 1.0f)
#define TAP_TIMEOUT 300 // Time in milliseconds
#define PINCH_TIMEOUT 300 // Time in milliseconds
-#define DOUBLETAP_RANGE 0.03f
+#define DOUBLETAP_RANGE 0.03f // Measured in normalized screen units (0.0f to 1.0f)
//----------------------------------------------------------------------------------
// Types and Structures Definition