mirror of https://github.com/encounter/SDL.git
correct dynapi
This commit is contained in:
parent
5696582e1d
commit
360740ac76
|
@ -216,11 +216,11 @@ extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath(void);
|
||||||
extern DECLSPEC SDL_bool SDLCALL SDL_AndroidRequestPermission(const char *permission);
|
extern DECLSPEC SDL_bool SDLCALL SDL_AndroidRequestPermission(const char *permission);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief Show android toast notification
|
\brief Shows android toast notification
|
||||||
|
|
||||||
Show toast in UI thread [https://developer.android.com/guide/topics/ui/notifiers/toasts]
|
\note Shows toast in UI thread [https://developer.android.com/guide/topics/ui/notifiers/toasts]
|
||||||
Params description
|
|
||||||
message : text message to be shown
|
\param message : text message to be shown
|
||||||
duration : 0 - short [https://developer.android.com/reference/android/widget/Toast#LENGTH_SHORT],
|
duration : 0 - short [https://developer.android.com/reference/android/widget/Toast#LENGTH_SHORT],
|
||||||
1 - long [https://developer.android.com/reference/android/widget/Toast#LENGTH_LONG]
|
1 - long [https://developer.android.com/reference/android/widget/Toast#LENGTH_LONG]
|
||||||
gravity : the location at which the notification should appear on the screen.
|
gravity : the location at which the notification should appear on the screen.
|
||||||
|
@ -228,7 +228,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_AndroidRequestPermission(const char *permis
|
||||||
choose some value from https://developer.android.com/reference/android/view/Gravity
|
choose some value from https://developer.android.com/reference/android/view/Gravity
|
||||||
xOffset : set this parameter only when gravity >=0
|
xOffset : set this parameter only when gravity >=0
|
||||||
yOffset : set this parameter only when gravity >=0
|
yOffset : set this parameter only when gravity >=0
|
||||||
Returns 0 if success, -1 if any error occured.
|
\return 0 if success, -1 if any error occurs.
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC int SDLCALL SDL_AndroidShowToast(const char* message, int duration, int gravity, int xOffset, int yOffset);
|
extern DECLSPEC int SDLCALL SDL_AndroidShowToast(const char* message, int duration, int gravity, int xOffset, int yOffset);
|
||||||
|
|
||||||
|
|
|
@ -766,7 +766,6 @@
|
||||||
#define SDL_GetPreferredLocales SDL_GetPreferredLocales_REAL
|
#define SDL_GetPreferredLocales SDL_GetPreferredLocales_REAL
|
||||||
#define SDL_SIMDRealloc SDL_SIMDRealloc_REAL
|
#define SDL_SIMDRealloc SDL_SIMDRealloc_REAL
|
||||||
#define SDL_AndroidRequestPermission SDL_AndroidRequestPermission_REAL
|
#define SDL_AndroidRequestPermission SDL_AndroidRequestPermission_REAL
|
||||||
#define SDL_AndroidShowToast SDL_AndroidShowToast_REAL
|
|
||||||
#define SDL_OpenURL SDL_OpenURL_REAL
|
#define SDL_OpenURL SDL_OpenURL_REAL
|
||||||
#define SDL_HasSurfaceRLE SDL_HasSurfaceRLE_REAL
|
#define SDL_HasSurfaceRLE SDL_HasSurfaceRLE_REAL
|
||||||
#define SDL_GameControllerHasLED SDL_GameControllerHasLED_REAL
|
#define SDL_GameControllerHasLED SDL_GameControllerHasLED_REAL
|
||||||
|
@ -808,3 +807,4 @@
|
||||||
#define SDL_ispunct SDL_ispunct_REAL
|
#define SDL_ispunct SDL_ispunct_REAL
|
||||||
#define SDL_isprint SDL_isprint_REAL
|
#define SDL_isprint SDL_isprint_REAL
|
||||||
#define SDL_isgraph SDL_isgraph_REAL
|
#define SDL_isgraph SDL_isgraph_REAL
|
||||||
|
#define SDL_AndroidShowToast SDL_AndroidShowToast_REAL
|
||||||
|
|
|
@ -826,7 +826,6 @@ SDL_DYNAPI_PROC(SDL_Locale *,SDL_GetPreferredLocales,(void),(),return)
|
||||||
SDL_DYNAPI_PROC(void*,SDL_SIMDRealloc,(void *a, const size_t b),(a, b),return)
|
SDL_DYNAPI_PROC(void*,SDL_SIMDRealloc,(void *a, const size_t b),(a, b),return)
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
SDL_DYNAPI_PROC(SDL_bool,SDL_AndroidRequestPermission,(const char *a),(a),return)
|
SDL_DYNAPI_PROC(SDL_bool,SDL_AndroidRequestPermission,(const char *a),(a),return)
|
||||||
SDL_DYNAPI_PROC(int,SDL_AndroidShowToast,(const char* message, int duration, int gravity, int xOffset, int yOffset),(message,duration,gravity,xOffset,yOffset),return)
|
|
||||||
#endif
|
#endif
|
||||||
SDL_DYNAPI_PROC(int,SDL_OpenURL,(const char *a),(a),return)
|
SDL_DYNAPI_PROC(int,SDL_OpenURL,(const char *a),(a),return)
|
||||||
SDL_DYNAPI_PROC(SDL_bool,SDL_HasSurfaceRLE,(SDL_Surface *a),(a),return)
|
SDL_DYNAPI_PROC(SDL_bool,SDL_HasSurfaceRLE,(SDL_Surface *a),(a),return)
|
||||||
|
@ -871,3 +870,6 @@ SDL_DYNAPI_PROC(int,SDL_isxdigit,(int a),(a),return)
|
||||||
SDL_DYNAPI_PROC(int,SDL_ispunct,(int a),(a),return)
|
SDL_DYNAPI_PROC(int,SDL_ispunct,(int a),(a),return)
|
||||||
SDL_DYNAPI_PROC(int,SDL_isprint,(int a),(a),return)
|
SDL_DYNAPI_PROC(int,SDL_isprint,(int a),(a),return)
|
||||||
SDL_DYNAPI_PROC(int,SDL_isgraph,(int a),(a),return)
|
SDL_DYNAPI_PROC(int,SDL_isgraph,(int a),(a),return)
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
SDL_DYNAPI_PROC(int,SDL_AndroidShowToast,(const char *a, int b, int c, int d, int e),(a,b,c,d,e),return)
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue