diff options
| author | ghassanpl <kronikarz@gmail.com> | 2016-08-06 17:03:07 +0200 |
|---|---|---|
| committer | ghassanpl <kronikarz@gmail.com> | 2016-08-06 17:03:07 +0200 |
| commit | cfe47cc8541355e9e802a6c2df7df8570c9a3d2a (patch) | |
| tree | 197829790c7dd766f2b5f44df6e5b64d895b73e4 /src/raylib.h | |
| parent | 4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5 (diff) | |
| parent | 3b80e2c1e03e0f87d50ca8876b50a11c7df1f56f (diff) | |
| download | raylib-cfe47cc8541355e9e802a6c2df7df8570c9a3d2a.tar.gz raylib-cfe47cc8541355e9e802a6c2df7df8570c9a3d2a.zip | |
Merge branch 'develop' of https://github.com/raysan5/raylib into develop
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/raylib.h b/src/raylib.h index 104d5677..1489546a 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -570,18 +570,6 @@ typedef enum { GESTURE_PINCH_OUT = 512 } Gestures; -// Touch action (fingers or mouse) -typedef enum { TOUCH_UP, TOUCH_DOWN, TOUCH_MOVE } TouchAction; - -// Gesture events -// NOTE: MAX_TOUCH_POINTS fixed to 2 -typedef struct GestureEvent { - int touchAction; - int pointCount; - int pointerId[MAX_TOUCH_POINTS]; - Vector2 position[MAX_TOUCH_POINTS]; -} GestureEvent; - // Camera system modes typedef enum { CAMERA_CUSTOM = 0, CAMERA_FREE, CAMERA_ORBITAL, CAMERA_FIRST_PERSON, CAMERA_THIRD_PERSON } CameraMode; @@ -711,11 +699,8 @@ bool IsButtonReleased(int button); // Detect if an android //------------------------------------------------------------------------------------ void SetGesturesEnabled(unsigned int gestureFlags); // Enable a set of gestures using flags bool IsGestureDetected(int gesture); // Check if a gesture have been detected -void ProcessGestureEvent(GestureEvent event); // Process gesture event and translate it into gestures -void UpdateGestures(void); // Update gestures detected (called automatically in PollInputEvents()) - -int GetTouchPointsCount(void); // Get touch points count int GetGestureDetected(void); // Get latest detected gesture +int GetTouchPointsCount(void); // Get touch points count float GetGestureHoldDuration(void); // Get gesture hold time in milliseconds Vector2 GetGestureDragVector(void); // Get gesture drag vector float GetGestureDragAngle(void); // Get gesture drag angle |
