浏览代码

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

Amir 4 年之前
父节点
当前提交
5696582e1d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/SDL_system.h

+ 1 - 0
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);