Qt: Set default gamepad and sensor drivers

This commit is contained in:
Vicki Pfau 2023-01-25 04:17:38 -08:00
parent 0da94526bc
commit e2668c25c5
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ Window::Window(CoreManager* manager, ConfigController* config, int playerId, QWi
#ifdef BUILD_SDL #ifdef BUILD_SDL
m_inputController.addInputDriver(std::make_shared<SDLInputDriver>(&m_inputController)); m_inputController.addInputDriver(std::make_shared<SDLInputDriver>(&m_inputController));
m_inputController.setGamepadDriver(SDL_BINDING_BUTTON);
m_inputController.setSensorDriver(SDL_BINDING_BUTTON);
#endif #endif
m_shortcutController->setConfigController(m_config); m_shortcutController->setConfigController(m_config);