diff options
author | Oystein Eftevaag | 2008-01-02 00:07:16 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2008-01-02 00:07:16 +0000 |
commit | fe8faf4f195c0105bc31845f9fcd3017462830cb (patch) | |
tree | d2f55565dd93a2d6ff6104f98ccf17dd80cda4be /backends/platform/iphone/iphone_common.h | |
parent | 46368eac5f1afc6d3fe706a3efffc7ccf336a924 (diff) | |
download | scummvm-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.h | 11 |
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" { |