mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix merge issue
This commit is contained in:
parent
877135a803
commit
00f1229ea2
|
@ -159,8 +159,9 @@ void InputController::setPlatform(mPlatform platform) {
|
||||||
|
|
||||||
loadConfiguration(KEYBOARD);
|
loadConfiguration(KEYBOARD);
|
||||||
#ifdef BUILD_SDL
|
#ifdef BUILD_SDL
|
||||||
mSDLInitBindingsGBA(&m_inputMap);
|
if (!loadConfiguration(SDL_BINDING_BUTTON)) {
|
||||||
loadConfiguration(SDL_BINDING_BUTTON);
|
mSDLInitBindingsGBA(&m_inputMap);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rebuildKeyIndex();
|
rebuildKeyIndex();
|
||||||
|
@ -273,9 +274,6 @@ void InputController::setConfiguration(ConfigController* config) {
|
||||||
if (!m_playerAttached) {
|
if (!m_playerAttached) {
|
||||||
m_playerAttached = mSDLAttachPlayer(&s_sdlEvents, &m_sdlPlayer);
|
m_playerAttached = mSDLAttachPlayer(&s_sdlEvents, &m_sdlPlayer);
|
||||||
}
|
}
|
||||||
if (!loadConfiguration(SDL_BINDING_BUTTON)) {
|
|
||||||
mSDLInitBindingsGBA(&m_inputMap);
|
|
||||||
}
|
|
||||||
loadProfile(SDL_BINDING_BUTTON, profileForType(SDL_BINDING_BUTTON));
|
loadProfile(SDL_BINDING_BUTTON, profileForType(SDL_BINDING_BUTTON));
|
||||||
#endif
|
#endif
|
||||||
restoreModel();
|
restoreModel();
|
||||||
|
|
Loading…
Reference in New Issue