Disable accelerometer joystick emulation on Android

This commit is contained in:
Jonas Kulla 2015-01-15 07:21:07 +01:00
parent f1da585f33
commit 012d87d05a
1 changed files with 2 additions and 1 deletions

View File

@ -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;