diff options
| author | Ray <raysan5@gmail.com> | 2016-02-17 13:00:48 +0100 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-02-17 13:00:48 +0100 |
| commit | afd2ffb74a84bf48b9129c613e1673ceae0bd46b (patch) | |
| tree | 6b36467cb71b55e3073d0dd59b1c16bf006eefca /src/raylib.h | |
| parent | 825e42dc008793c16da9f267bf1c8d020d2d9ece (diff) | |
| download | raylib-afd2ffb74a84bf48b9129c613e1673ceae0bd46b.tar.gz raylib-afd2ffb74a84bf48b9129c613e1673ceae0bd46b.zip | |
Updated gestures module
Using normalized [0..1] input points
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/raylib.h b/src/raylib.h index f5a3cc31..def56ee2 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -607,19 +607,18 @@ bool IsButtonReleased(int button); // Detect if an android //------------------------------------------------------------------------------------ // Gestures and Touch Handling Functions (Module: gestures) //------------------------------------------------------------------------------------ +void ProcessGestureEvent(GestureEvent event); // Process gesture event and translate it into gestures void UpdateGestures(void); // Update gestures detected (must be called every frame) bool IsGestureDetected(void); // Check if a gesture have been detected int GetGestureType(void); // Get latest detected gesture void SetGesturesEnabled(unsigned int gestureFlags); // Enable a set of gestures using flags -void ProcessGestureEvent(GestureEvent event); // Process gesture event and translate it into gestures +int GetTouchPointsCount(void); // Get touch points count -float GetGestureDragIntensity(void); // Get gesture drag intensity -float GetGestureDragAngle(void); // Get gesture drag angle +float GetGestureHoldDuration(void); // Get gesture hold time in milliseconds Vector2 GetGestureDragVector(void); // Get gesture drag vector -float GetGestureHoldDuration(void); // Get gesture hold time in ms -float GetGesturePinchDelta(void); // Get gesture pinch delta +float GetGestureDragAngle(void); // Get gesture drag angle +Vector2 GetGesturePinchVector(void); // Get gesture pinch delta float GetGesturePinchAngle(void); // Get gesture pinch angle -int GetTouchPointsCount(void); // Get touch points count //------------------------------------------------------------------------------------ // Camera System Functions (Module: camera) |
