Disable accelerometer joystick emulation on Android
This commit is contained in:
parent
f1da585f33
commit
012d87d05a
|
@ -246,7 +246,8 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
SDL_Surface *iconImg = IMG_Load_RW(iconSrc, SDL_TRUE);
|
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;
|
SDL_Window *win;
|
||||||
Uint32 winFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_INPUT_FOCUS;
|
Uint32 winFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_INPUT_FOCUS;
|
||||||
|
|
Loading…
Reference in New Issue