SDL_IsChromebook(3)
β¨ NAME β¨
SDL_IsChromebook β the lil vibe check that tells you if your app is running on a Chromebook π»β¨
(it lives in the SDL3 FUNCTIONS section of the manual, iykyk)
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_system.h>
bool SDL_IsChromebook(void);
okay so you pull in that header, call the function, no args, nothing fancy, and it hands you back a bool. that's the whole thing bestie π«Ά
π RETURN VALUE π
trueβ slay, you are literally on a Chromebook πfalseβ nope, not a Chromebook, moving on π
π§ THREAD SAFETY π§
go off fr fr β it's safe to call this function from any thread. no locks, no stress, no main-character-only nonsense. call it from wherever you want π
β AVAILABILITY β
this one has been around since SDL 3.2.0 π± so if you're on anything older... it's giving nothing, sorry π
π reminder bestie: this function only answers the question. it does not make your app Chromebook-ready, it does not detect anything else, it does not take arguments.boolin,boolout, periodt.
and that's the whole page π¦ written up in the Simple Directmedia Layer docs, sitting pretty at version SDL 3.4.18 π catch you in the next man page, mwah π
β¨
π¦ 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