Reimplemented Android cursor API support using reflection so it builds with older SDKs

This commit is contained in:
Sam Lantinga
2018-03-16 11:08:53 -07:00
parent e20d4173bf
commit f536fbea71
4 changed files with 78 additions and 68 deletions

View File

@@ -104,8 +104,8 @@ int Android_JNI_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *bu
/* Cursor support */
int Android_JNI_CreateCustomCursor(SDL_Surface *surface, int hot_x, int hot_y);
void Android_JNI_SetCustomCursor(int cursorID);
void Android_JNI_SetSystemCursor(int cursorID);
SDL_bool Android_JNI_SetCustomCursor(int cursorID);
SDL_bool Android_JNI_SetSystemCursor(int cursorID);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus