diff --git a/project/jni/sdl-1.2/include/SDL_android.h b/project/jni/sdl-1.2/include/SDL_android.h index 50dc3ffbb..7cd48cf01 100644 --- a/project/jni/sdl-1.2/include/SDL_android.h +++ b/project/jni/sdl-1.2/include/SDL_android.h @@ -148,6 +148,8 @@ extern DECLSPEC void SDLCALL SDL_ANDROID_SetMouseEmulationMode( int forceHardwareMouse, int showScreenUnderFinger, int fingerHover, int fingerHoverJitterFilter, int generateSubframeTouchEvents ); + +extern DECLSPEC int SDLCALL SDL_ANDROID_GetMouseEmulationMode(); #ifdef __cplusplus } diff --git a/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c b/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c index e43d2a1fc..056183910 100644 --- a/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c +++ b/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c @@ -1200,6 +1200,10 @@ void SDLCALL SDL_ANDROID_SetMouseEmulationMode( } } +int SDLCALL SDL_ANDROID_GetMouseEmulationMode() { + return relativeMovement; +} + typedef struct { int leftClickMethod;