diff --git a/src/main.cpp b/src/main.cpp index 890d7e6..1831257 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -246,7 +246,8 @@ int main(int argc, char *argv[]) SDL_Surface *iconImg = IMG_Load_RW(iconSrc, SDL_TRUE); - SDL_SetHint("SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS", "0"); + SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0"); + SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0"); SDL_Window *win; Uint32 winFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_INPUT_FOCUS;