aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/osys_main.cpp
diff options
context:
space:
mode:
authorOystein Eftevaag2011-05-14 23:01:08 -0400
committerOystein Eftevaag2011-05-15 18:04:36 -0400
commitb3062b5e7eb3737c5426ef8e9d93efe01fbd0a50 (patch)
tree41379feb631864f335ed971e8d2cfc2e93a74a51 /backends/platform/iphone/osys_main.cpp
parent5075d64f2e7e684aa14af1b4146e087226dbb5e8 (diff)
downloadscummvm-rg350-b3062b5e7eb3737c5426ef8e9d93efe01fbd0a50.tar.gz
scummvm-rg350-b3062b5e7eb3737c5426ef8e9d93efe01fbd0a50.tar.bz2
scummvm-rg350-b3062b5e7eb3737c5426ef8e9d93efe01fbd0a50.zip
IPHONE: Changed the iOS queued event handling to fix mouseclicks in Gob
We now delay the mouseup events for 50ms, rather than just delaying them for an additional couple of pollEvent (which doesn't work anymore due to changes in the eventhandling code elsewhere). This fixes #3018512.
Diffstat (limited to 'backends/platform/iphone/osys_main.cpp')
-rw-r--r--backends/platform/iphone/osys_main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/iphone/osys_main.cpp b/backends/platform/iphone/osys_main.cpp
index dcca8dcbef..12317ad935 100644
--- a/backends/platform/iphone/osys_main.cpp
+++ b/backends/platform/iphone/osys_main.cpp
@@ -55,9 +55,9 @@ void *OSystem_IPHONE::s_soundParam = NULL;
OSystem_IPHONE::OSystem_IPHONE() :
_savefile(NULL), _mixer(NULL), _timer(NULL), _offscreen(NULL),
_overlayVisible(false), _fullscreen(NULL),
- _mouseHeight(0), _mouseWidth(0), _mouseBuf(NULL), _lastMouseTap(0),
- _secondaryTapped(false), _lastSecondaryTap(0), _screenOrientation(kScreenOrientationFlippedLandscape),
- _needEventRestPeriod(false), _mouseClickAndDragEnabled(false),
+ _mouseHeight(0), _mouseWidth(0), _mouseBuf(NULL), _lastMouseTap(0), _queuedEventTime(0),
+ _secondaryTapped(false), _lastSecondaryTap(0),
+ _screenOrientation(kScreenOrientationFlippedLandscape), _mouseClickAndDragEnabled(false),
_gestureStartX(-1), _gestureStartY(-1), _fullScreenIsDirty(false), _fullScreenOverlayIsDirty(false),
_mouseDirty(false), _timeSuspended(0), _lastDragPosX(-1), _lastDragPosY(-1), _screenChangeCount(0),
_overlayHeight(0), _overlayWidth(0), _overlayBuffer(0)