aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/osys_main.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-20 17:35:19 +0100
committerJohannes Schickel2012-02-20 18:39:57 +0100
commitd4c167414d13bab393f95ec430d717a0413a1b82 (patch)
tree4fa1933985ae951329532ca43ed244d724c6ee8d /backends/platform/iphone/osys_main.cpp
parent5cc3d754f72c640f905b535f662b742c8b3794dc (diff)
downloadscummvm-rg350-d4c167414d13bab393f95ec430d717a0413a1b82.tar.gz
scummvm-rg350-d4c167414d13bab393f95ec430d717a0413a1b82.tar.bz2
scummvm-rg350-d4c167414d13bab393f95ec430d717a0413a1b82.zip
IPHONE: Refactor event code a bit.
Now mouse x/y coordinates are passed as int.
Diffstat (limited to 'backends/platform/iphone/osys_main.cpp')
-rw-r--r--backends/platform/iphone/osys_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/iphone/osys_main.cpp b/backends/platform/iphone/osys_main.cpp
index 36f21363be..2bdc09c9ce 100644
--- a/backends/platform/iphone/osys_main.cpp
+++ b/backends/platform/iphone/osys_main.cpp
@@ -139,13 +139,13 @@ bool OSystem_IPHONE::getFeatureState(Feature f) {
void OSystem_IPHONE::suspendLoop() {
bool done = false;
int eventType;
- float xUnit, yUnit;
+ int x, y;
uint32 startTime = getMillis();
stopSoundsystem();
while (!done) {
- if (iPhone_fetchEvent(&eventType, &xUnit, &yUnit))
+ if (iPhone_fetchEvent(&eventType, &x, &y))
if ((InputEvent)eventType == kInputApplicationResumed)
done = true;
usleep(100000);