sdlAndroidSendMessage function

int sdlAndroidSendMessage(
  1. int command,
  2. int param
)

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

\since This function is available since SDL 2.0.22.

extern DECLSPEC int SDLCALL SDL_AndroidSendMessage(Uint32 command, int param)

Implementation

int sdlAndroidSendMessage(int command, int param) {
  final sdlAndroidSendMessageLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Uint32 command, Int32 param),
      int Function(int command, int param)>('SDL_AndroidSendMessage');
  return sdlAndroidSendMessageLookupFunction(command, param);
}