diff options
| author | raysan5 <raysan5@gmail.com> | 2016-06-03 18:51:19 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-06-03 18:51:19 +0200 |
| commit | d1133ca8d3a959c438ccf98f1c21f0ff24381b48 (patch) | |
| tree | 272ae7b1e1d8f12a81fe98e089ef548268e74f2d /src | |
| parent | 13bef7aa0215c135074947a28dce92695d456565 (diff) | |
| download | raylib-d1133ca8d3a959c438ccf98f1c21f0ff24381b48.tar.gz raylib-d1133ca8d3a959c438ccf98f1c21f0ff24381b48.zip | |
Some gestures comments tweaks...
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 2 | ||||
| -rw-r--r-- | src/gestures.c | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -2674,7 +2674,7 @@ static EM_BOOL EmscriptenInputCallback(int eventType, const EmscriptenTouchEvent gestureEvent.position[1].y /= (float)GetScreenHeight(); // Gesture data is sent to gestures system for processing - ProcessGestureEvent(gestureEvent); // Process obtained gestures data + ProcessGestureEvent(gestureEvent); return 1; } diff --git a/src/gestures.c b/src/gestures.c index d3b85d12..90371620 100644 --- a/src/gestures.c +++ b/src/gestures.c @@ -46,12 +46,12 @@ //---------------------------------------------------------------------------------- // 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 |
