From fe8faf4f195c0105bc31845f9fcd3017462830cb Mon Sep 17 00:00:00 2001 From: Oystein Eftevaag Date: Wed, 2 Jan 2008 00:07:16 +0000 Subject: (forward-port) Quick swipes across the screen now triggers arrow key events. Also, some mouse cursor fixes for landscape mode svn-id: r30134 --- backends/platform/iphone/iphone_common.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'backends/platform/iphone/iphone_common.h') diff --git a/backends/platform/iphone/iphone_common.h b/backends/platform/iphone/iphone_common.h index b4723670eb..6a5250a018 100644 --- a/backends/platform/iphone/iphone_common.h +++ b/backends/platform/iphone/iphone_common.h @@ -32,7 +32,8 @@ enum InputEvent { kInputOrientationChanged, kInputKeyPressed, kInputApplicationSuspended, - kInputApplicationResumed + kInputApplicationResumed, + kInputSwipe }; enum ScreenOrientation { @@ -41,6 +42,14 @@ enum ScreenOrientation { kScreenOrientationFlippedLandscape }; +typedef enum +{ + kUIViewSwipeUp = 1, + kUIViewSwipeDown = 2, + kUIViewSwipeLeft = 4, + kUIViewSwipeRight = 8 +} UIViewSwipeDirection; + // We need this to be able to call functions from/in Objective-C. #ifdef __cplusplus extern "C" { -- cgit v1.2.3