aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/iphone_common.h
diff options
context:
space:
mode:
authorOystein Eftevaag2008-01-02 00:07:16 +0000
committerOystein Eftevaag2008-01-02 00:07:16 +0000
commitfe8faf4f195c0105bc31845f9fcd3017462830cb (patch)
treed2f55565dd93a2d6ff6104f98ccf17dd80cda4be /backends/platform/iphone/iphone_common.h
parent46368eac5f1afc6d3fe706a3efffc7ccf336a924 (diff)
downloadscummvm-rg350-fe8faf4f195c0105bc31845f9fcd3017462830cb.tar.gz
scummvm-rg350-fe8faf4f195c0105bc31845f9fcd3017462830cb.tar.bz2
scummvm-rg350-fe8faf4f195c0105bc31845f9fcd3017462830cb.zip
(forward-port) Quick swipes across the screen now triggers arrow key events. Also, some mouse cursor fixes for landscape mode
svn-id: r30134
Diffstat (limited to 'backends/platform/iphone/iphone_common.h')
-rw-r--r--backends/platform/iphone/iphone_common.h11
1 files changed, 10 insertions, 1 deletions
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" {