IPHONE: Take advantage of Common::EVENT_INVALID.

This commit is contained in:
Johannes Schickel
2012-02-19 05:21:17 +01:00
parent ffaa8612c3
commit ab4420b3ca
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
}
+1 -1
View File
@@ -62,7 +62,7 @@ OSystem_IPHONE::OSystem_IPHONE() :
_mouseDirty(false), _timeSuspended(0), _lastDragPosX(-1), _lastDragPosY(-1), _screenChangeCount(0),
_overlayHeight(0), _overlayWidth(0), _overlayBuffer(0)
{
_queuedInputEvent.type = (Common::EventType)0;
_queuedInputEvent.type = Common::EVENT_INVALID;
_lastDrawnMouseRect = Common::Rect(0, 0, 0, 0);
_touchpadModeEnabled = !iPhone_isHighResDevice();