mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-03 18:14:01 +00:00
Fix startup on windows 10 with new SDL2 and sensors disabled by group policies
This commit is contained in:
parent
b69c637da4
commit
db054e7382
1 changed files with 5 additions and 2 deletions
|
@ -535,12 +535,15 @@ void Core::init()
|
|||
{
|
||||
setupFileAccess();
|
||||
|
||||
unsigned sdlflags = SDL_INIT_EVERYTHING;
|
||||
// Don't want to use SDL_INIT_EVERYTHING, in case future changes to SDL add any flags.
|
||||
// Ie. At some point SDL2 added a sensors subsystem, which may cause SDL_Init() to fail
|
||||
// due to win10 group policies that forbid sensor usage. Probably similar things on OSX.
|
||||
unsigned sdlflags = SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_EVENTS;
|
||||
|
||||
quitNestedMainFlag = false;
|
||||
#ifdef BBGE_BUILD_SDL2
|
||||
// Haptic is inited separately, in Jostick.cpp, when a joystick is actually plugged in
|
||||
sdlflags &= ~SDL_INIT_HAPTIC;
|
||||
sdlflags |= SDL_INIT_GAMECONTROLLER;
|
||||
#else
|
||||
// Disable relative mouse motion at the edges of the screen, which breaks
|
||||
// mouse control for absolute input devices like Wacom tablets and touchscreens.
|
||||
|
|
Loading…
Add table
Reference in a new issue