Fixed bug #5221 - Add SDL_AndroidSendMessage()

This commit is contained in:
Sylvain 2022-02-01 11:30:43 +01:00
parent 97269e143d
commit fe2ed6cf6f
No known key found for this signature in database
GPG key ID: 5F87E02E5BC0939E
4 changed files with 20 additions and 0 deletions

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 */