diff options
author | Johannes Schickel | 2012-04-02 00:02:31 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-04-02 00:03:28 +0200 |
commit | b886bc0a418462dd2bb5c0f0d1cf21f8f109b34b (patch) | |
tree | 3f71cffdc5191293549a0c3dade4c6c0ef9f68be /backends/platform/iphone/osys_main.cpp | |
parent | a92c54454f151377e0fc34be525b90c42b42d4af (diff) | |
download | scummvm-rg350-b886bc0a418462dd2bb5c0f0d1cf21f8f109b34b.tar.gz scummvm-rg350-b886bc0a418462dd2bb5c0f0d1cf21f8f109b34b.tar.bz2 scummvm-rg350-b886bc0a418462dd2bb5c0f0d1cf21f8f109b34b.zip |
IPHONE: Use InternalEvent directly.
Diffstat (limited to 'backends/platform/iphone/osys_main.cpp')
-rw-r--r-- | backends/platform/iphone/osys_main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/backends/platform/iphone/osys_main.cpp b/backends/platform/iphone/osys_main.cpp index 9a33cd8968..6935399c95 100644 --- a/backends/platform/iphone/osys_main.cpp +++ b/backends/platform/iphone/osys_main.cpp @@ -145,15 +145,14 @@ bool OSystem_IPHONE::getFeatureState(Feature f) { void OSystem_IPHONE::suspendLoop() { bool done = false; - int eventType; - int x, y; uint32 startTime = getMillis(); stopSoundsystem(); + InternalEvent event; while (!done) { - if (iPhone_fetchEvent(&eventType, &x, &y)) - if ((InputEvent)eventType == kInputApplicationResumed) + if (iPhone_fetchEvent(&event)) + if (event.type == kInputApplicationResumed) done = true; usleep(100000); } |