Commit 5696582e1d58435b4637617d0d956ce9a0457010

Amir 2021-02-19T14:22:31

add SDL_AndroidShowToast for https://developer.android.com/reference/android/widget/Toast

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/include/SDL_system.h b/include/SDL_system.h
index f013441..adf1c03 100644
--- a/include/SDL_system.h
+++ b/include/SDL_system.h
@@ -228,6 +228,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_AndroidRequestPermission(const char *permis
                 choose some value from https://developer.android.com/reference/android/view/Gravity
     xOffset   : set this parameter only when gravity >=0
     yOffset   : set this parameter only when gravity >=0
+    Returns 0 if success, -1 if any error occured.
 */
 extern DECLSPEC int SDLCALL SDL_AndroidShowToast(const char* message, int duration, int gravity, int xOffset, int yOffset);