SDL_SendAndroidMessage(3)
π SDL_SendAndroidMessage(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages, we're talking about SDL_SendAndroidMessage(3) today and honestly? it's giving "tiny function, big vibes" β¨
πΈ NAME πΈ
SDL_SendAndroidMessage β slide a lil user command over to SDLActivity, no cap π¨
π SYNOPSIS π
#include <SDL3/SDL_system.h>
bool SDL_SendAndroidMessage(Uint32 command, int param);
π¦ DESCRIPTION π¦
so here's the tea, bestie π« β you override this:
boolean onUnhandledMessage(Message msg)
and that's literally how you handle the message. that's it. that's the whole vibe. π
β¨ FUNCTION PARAMETERS β¨
commandβ the user command, and it must be greater than or equal to0x8000. like, that's the floor, don't go under it π«paramβ the user parameter. that's your lil extra lil payload, do whatever with it π
π RETURN VALUE π
returns true on success, false on failure π β and if it fails, go call SDL_GetError() for the full story, she'll tell you everything π
π§ THREAD SAFETY π§
it is safe to call this function from any thread π like genuinely, go feral, any thread you want, it's fine, iconic behavior honestly
β AVAILABILITY β
this one's been around since SDL 3.2.0 β so if you're on anything older... bestie. update. π
that's the whole page, you ate that, no crumbs left π
signing off with the deets you need: this is from Simple Directmedia Layer, rocking SDL 3.4.18 energy, and the page itself is dated SDL_SendAndroidMessage(3) β same name, same date, we're consistent and we're slaying π β¨π«Ά
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms