SDL_SendAndroidBackButton(3)

πŸ’– SDL_SendAndroidBackButton πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where today's main character is a function that just... presses the back button for you. no cap.


✨ NAME ✨

SDL_SendAndroidBackButton β€” trigger the Android system back button behavior. that's it. that's the whole job. iconic.


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_system.h>

void SDL_SendAndroidBackButton(void);

so you pull in SDL3/SDL_system.h, you call the thing with no arguments, it returns void β€” nothing back, no drama, just vibes. πŸ¦‹


🫢 THREAD SAFETY 🫢

bestie you can call this from any thread. literally any of them. go feral. thread-safe fr fr. ✨


⭐ AVAILABILITY ⭐

this one has been around since SDL 3.2.0 β€” so if you're on anything older, it's giving "not yet, babe". πŸ’…


and that's the whole page, no filler, no secret extra flags hiding in the back, just one tiny function with impeccable energy.

Simple Directmedia Layer πŸŽ€ SDL 3.4.18 πŸŽ€ SDL_SendAndroidBackButton(3) β€” mwah, thanks for reading, ily, go press some back buttons πŸ’–βœ¨

πŸ“¦ where this page comes from