IOS7: Delete deprecated and unused event variables

These class member variables aren't used anymore.
This commit is contained in:
Lars Sundström 2023-07-23 23:54:12 +02:00 committed by Thierry Crozat
parent 77d56abc66
commit 0d77f8a262
3 changed files with 3 additions and 8 deletions

View File

@ -232,8 +232,7 @@ bool OSystem_iOS7::handleEvent_touchFirstUp(Common::Event &event, int x, int y)
_queuedInputEvent.type = Common::EVENT_LBUTTONUP;
handleEvent_mouseEvent(_queuedInputEvent, 0, 0);
_lastMouseTap = getMillis();
_queuedEventTime = _lastMouseTap + kQueuedInputEventDelay;
_queuedEventTime = getMillis() + kQueuedInputEventDelay;
} else
return false;
}
@ -242,7 +241,6 @@ bool OSystem_iOS7::handleEvent_touchFirstUp(Common::Event &event, int x, int y)
}
bool OSystem_iOS7::handleEvent_touchSecondDown(Common::Event &event, int x, int y) {
_lastSecondaryDown = getMillis();
if (_mouseClickAndDragEnabled) {
event.type = Common::EVENT_LBUTTONUP;

View File

@ -88,8 +88,8 @@ public:
};
OSystem_iOS7::OSystem_iOS7() :
_mixer(NULL), _lastMouseTap(0), _queuedEventTime(0),
_secondaryTapped(false), _lastSecondaryTap(0),
_mixer(NULL), _queuedEventTime(0),
_secondaryTapped(false),
_screenOrientation(kScreenOrientationAuto),
_timeSuspended(0), _runningTasks(0) {
_queuedInputEvent.type = Common::EVENT_INVALID;

View File

@ -64,12 +64,9 @@ protected:
int _runningTasks;
long _lastMouseDown;
long _lastMouseTap;
long _queuedEventTime;
Common::Event _queuedInputEvent;
bool _secondaryTapped;
long _lastSecondaryDown;
long _lastSecondaryTap;
bool _mouseClickAndDragEnabled;
bool _touchpadModeEnabled;
int _lastPadX;