From 012d87d05aebcd205553b43d9862ff766b056bb2 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Thu, 15 Jan 2015 07:21:07 +0100 Subject: [PATCH] Disable accelerometer joystick emulation on Android --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;