SDL: Remove left over traces from the time the SdlEventSource subclassed DefaultEventManager.
This commit is contained in:
parent
f9f16ee358
commit
2067bec18e
2 changed files with 15 additions and 19 deletions
|
@ -172,22 +172,6 @@ void OSystem_SDL::initBackend() {
|
|||
}
|
||||
}
|
||||
|
||||
// Creates the backend managers, if they don't exist yet (we check
|
||||
// for this to allow subclasses to provide their own).
|
||||
if (_eventManager == 0)
|
||||
_eventManager = new DefaultEventManager(_eventSource);
|
||||
|
||||
// We have to initialize the graphics manager before the event manager
|
||||
// so the virtual keyboard can be initialized, but we have to add the
|
||||
// graphics manager as an event observer after initializing the event
|
||||
// manager.
|
||||
if (graphicsManagerType == 0)
|
||||
((SdlGraphicsManager *)_graphicsManager)->initEventObserver();
|
||||
#ifdef USE_OPENGL
|
||||
else if (graphicsManagerType == 1)
|
||||
((OpenGLSdlGraphicsManager *)_graphicsManager)->initEventObserver();
|
||||
#endif
|
||||
|
||||
if (_savefileManager == 0)
|
||||
_savefileManager = new DefaultSaveFileManager();
|
||||
|
||||
|
@ -207,6 +191,18 @@ void OSystem_SDL::initBackend() {
|
|||
_inited = true;
|
||||
|
||||
ModularBackend::initBackend();
|
||||
|
||||
// We have to initialize the graphics manager before the event manager
|
||||
// so the virtual keyboard can be initialized, but we have to add the
|
||||
// graphics manager as an event observer after initializing the event
|
||||
// manager.
|
||||
if (graphicsManagerType == 0)
|
||||
((SdlGraphicsManager *)_graphicsManager)->initEventObserver();
|
||||
#ifdef USE_OPENGL
|
||||
else if (graphicsManagerType == 1)
|
||||
((OpenGLSdlGraphicsManager *)_graphicsManager)->initEventObserver();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void OSystem_SDL::initSDL() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue