This commit is contained in:
Benau
2020-08-30 00:44:12 +08:00
parent 698b6561ba
commit 2e990ac7b3

View File

@@ -66,6 +66,13 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters& param)
// noparachute prevents SDL from catching fatal errors.
SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1");
SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
#ifndef MOBILE_STK
// Prevent fullscreen minimizes when losing focus
if (CreationParams.Fullscreen)
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
#endif
u32 init_flags = SDL_INIT_TIMER | SDL_INIT_VIDEO;
if (SDL_Init(init_flags) < 0)
{