mirror of https://github.com/mgba-emu/mgba.git
Qt: Set default gamepad and sensor drivers
This commit is contained in:
parent
0da94526bc
commit
e2668c25c5
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue