FrontendCommon: Use SDL_InitSubSystem() for lazy initialization

This commit is contained in:
Connor McLaughlin
2020-02-16 00:15:05 +09:00
parent 78a6666439
commit 06f4d72631
10 changed files with 60 additions and 20 deletions

View File

@ -26,7 +26,7 @@ public:
SDLControllerInterface();
~SDLControllerInterface();
bool Initialize(HostInterface* host_interface, bool init_sdl);
bool Initialize(HostInterface* host_interface);
void Shutdown();
// Removes all bindings. Call before setting new bindings.
@ -101,7 +101,7 @@ private:
std::mutex m_event_intercept_mutex;
Hook::Callback m_event_intercept_callback;
bool m_sdl_initialized_by_us = false;
bool m_initialized = false;
};
extern SDLControllerInterface g_sdl_controller_interface;