RECORDER: Added stub for delayMillis() processing
This commit is contained in:
parent
1e45c32558
commit
baf65bc872
3 changed files with 9 additions and 1 deletions
|
@ -472,6 +472,7 @@ uint32 OSystem_SDL::getMillis() {
|
|||
}
|
||||
|
||||
void OSystem_SDL::delayMillis(uint msecs) {
|
||||
if (!g_eventRec.processDelayMillis(msecs))
|
||||
SDL_Delay(msecs);
|
||||
}
|
||||
|
||||
|
|
|
@ -304,6 +304,10 @@ void EventRecorder::processMillis(uint32 &millis) {
|
|||
g_system->unlockMutex(_timeMutex);
|
||||
}
|
||||
|
||||
bool EventRecorder::processDelayMillis(uint32 &msecs) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool EventRecorder::notifyEvent(const Event &ev) {
|
||||
if (_recordMode != kRecorderRecord)
|
||||
return false;
|
||||
|
|
|
@ -56,6 +56,9 @@ public:
|
|||
/** TODO: Add documentation, this is only used by the backend */
|
||||
void processMillis(uint32 &millis);
|
||||
|
||||
/** TODO: Add documentation, this is only used by the backend */
|
||||
bool processDelayMillis(uint32 &msecs);
|
||||
|
||||
private:
|
||||
bool notifyEvent(const Event &ev);
|
||||
bool pollEvent(Event &ev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue