mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
IPHONE: Take advantage of Common::EVENT_INVALID.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user