added getter for mouse emulation mode

This commit is contained in:
lubomyr
2017-01-28 23:01:23 +02:00
parent 31c9e98814
commit d050f3d3cd
2 changed files with 6 additions and 0 deletions

View File

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

View File

@@ -1200,6 +1200,10 @@ void SDLCALL SDL_ANDROID_SetMouseEmulationMode(
}
}
int SDLCALL SDL_ANDROID_GetMouseEmulationMode() {
return relativeMovement;
}
typedef struct
{
int leftClickMethod;