SDL_HINT_AND...LOCK_ON_PAUSE(3)
π SDL_HINT_ANDROID_BLOCK_ON_PAUSE π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_HINT_ANDROID_BLOCK_ON_PAUSE π«Ά
β¨ NAME β¨
SDL_HINT_ANDROID_BLOCK_ON_PAUSE β a variable that controls whether the event loop is gonna block itself when the app gets paused π lowkey important.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_ANDROID_BLOCK_ON_PAUSE "SDL_ANDROID_BLOCK_ON_PAUSE"
like yes, that's the include, that's the define, copy it exactly, no notes π
π DESCRIPTION π
so this variable can be set to the following values, and there are exactly two of them, we are not doing a third one:
"0"β non blocking. the event loop just goes about its business, no waiting, no drama π"1"β blocking. this is the default β¨
β οΈ bestie listen. this hint should be set before SDL is initialized. like, before. if you're setting it after, that's not it, that's giving too late π
π¦ AVAILABILITY π¦
this hint has been available since SDL 3.2.0 β so if you're on anything older, sorry babe, it's not there π
π SEE ALSO π
nothing else listed here, so it's just you and this hint, iconic duo energy π
mwah π that's the whole page, you ate that. this came to you from the Simple Directmedia Layer girlies, running SDL 3.4.18 β go forth and set your hints early, periodt β¨ππ¦
π¦ 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