aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/osys_events.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-19 05:18:47 +0100
committerJohannes Schickel2012-02-19 05:21:17 +0100
commitab4420b3ca591f707ea831cb077e88b800986471 (patch)
tree8728eb7e0b94e442e56281fcb22c51cb7591c3d1 /backends/platform/iphone/osys_events.cpp
parentffaa8612c3024f2ec97692015553dd846e31d830 (diff)
downloadscummvm-rg350-ab4420b3ca591f707ea831cb077e88b800986471.tar.gz
scummvm-rg350-ab4420b3ca591f707ea831cb077e88b800986471.tar.bz2
scummvm-rg350-ab4420b3ca591f707ea831cb077e88b800986471.zip
IPHONE: Take advantage of Common::EVENT_INVALID.
Diffstat (limited to 'backends/platform/iphone/osys_events.cpp')
-rw-r--r--backends/platform/iphone/osys_events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/iphone/osys_events.cpp b/backends/platform/iphone/osys_events.cpp
index f6dae2f519..a3075e23cb 100644
--- a/backends/platform/iphone/osys_events.cpp
+++ b/backends/platform/iphone/osys_events.cpp
@@ -40,9 +40,9 @@ bool OSystem_IPHONE::pollEvent(Common::Event &event) {
_timerCallbackNext = curTime + _timerCallbackTimer;
}
- if (_queuedInputEvent.type != (Common::EventType)0 && curTime >= _queuedEventTime) {
+ if (_queuedInputEvent.type != Common::EVENT_INVALID && curTime >= _queuedEventTime) {
event = _queuedInputEvent;
- _queuedInputEvent.type = (Common::EventType)0;
+ _queuedInputEvent.type = Common::EVENT_INVALID;
return true;
}