Fixed bug #5221 - Add SDL_AndroidSendMessage()

This commit is contained in:
Sylvain committed 2022-02-01 11:30:43 +01:00
1 parent 97269e143d
commit fe2ed6cf6f
4 files changed
+20

No files matched your search

+9
View File
@@ -425,6 +425,15 @@ extern DECLSPEC SDL_bool SDLCALL SDL_AndroidRequestPermission(const char *permis
*/
extern DECLSPEC int SDLCALL SDL_AndroidShowToast(const char* message, int duration, int gravity, int xoffset, int yoffset);
/**
* Send a user command to SDLActivity
* override "boolean onUnhandledMessage(Message msg)" to handle the message
*
* \param command user command that must be greater or equal to 0x8000
* \param param user parameter
*/
extern DECLSPEC int SDLCALL SDL_AndroidSendMessage(Uint32 command, int param);
#endif /* __ANDROID__ */
/* Platform specific functions for WinRT */