uwp: the back button (B) shouldn't close the app
This commit is contained in:
parent
e4bfeb9e44
commit
42fa77c81f
|
@ -161,6 +161,8 @@ void input_sdl_init()
|
||||||
NOTICE_LOG(INPUT, "Disabling XInput, using DirectInput");
|
NOTICE_LOG(INPUT, "Disabling XInput, using DirectInput");
|
||||||
SDL_SetHint(SDL_HINT_XINPUT_ENABLED, "0");
|
SDL_SetHint(SDL_HINT_XINPUT_ENABLED, "0");
|
||||||
}
|
}
|
||||||
|
// Don't close the app when pressing the B button
|
||||||
|
SDL_SetHint(SDL_HINT_WINRT_HANDLE_BACK_BUTTON, "1");
|
||||||
#endif
|
#endif
|
||||||
std::string db = get_readonly_data_path("gamecontrollerdb.txt");
|
std::string db = get_readonly_data_path("gamecontrollerdb.txt");
|
||||||
int rv = SDL_GameControllerAddMappingsFromFile(db.c_str());
|
int rv = SDL_GameControllerAddMappingsFromFile(db.c_str());
|
||||||
|
|
Loading…
Reference in New Issue