Use g_fxo for pad_handler

This commit is contained in:
Nekotekina 2019-09-18 02:44:06 +03:00
parent 3092914527
commit 4bba1e3337
5 changed files with 10 additions and 10 deletions

View file

@ -103,9 +103,9 @@ EmuCallbacks main_application::CreateCallbacks()
}
};
callbacks.get_pad_handler = [this](const std::string& title_id) -> std::shared_ptr<pad_thread>
callbacks.init_pad_handler = [this](std::string_view title_id)
{
return std::make_shared<pad_thread>(get_thread(), m_game_window, title_id);
g_fxo->init<pad_thread>(get_thread(), m_game_window, title_id);
};
callbacks.get_gs_render = []() -> std::shared_ptr<GSRender>