SDL_IsTablet(3)
β¨ SDL_IsTablet(3) β¨
okay so bestie, welcome to SDL_IsTablet(3) β a certified SDL3 FUNCTIONS moment. it's giving "is this thing a tablet or not" and honestly? we love a straightforward queen. π
π NAME π
SDL_IsTablet β query if the current device is a tablet. no cap, that's literally the whole job. π¦
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_system.h>
bool SDL_IsTablet(void);
look at her. clean. iconic. not a single argument in sight. periodt. β¨
π DESCRIPTION π
so like, if SDL can't determine this, it will return false. that's the vibe. if it can figure it out, you get the truth bestie, but when it's unsure? false. shy queen behavior, but valid. π
π RETURN VALUE π
- returns
trueif the device is a tablet π - returns
falseotherwise π
π§ THREAD SAFETY π§
it is safe to call this function from any thread. yes bestie, ANY thread. go wild, go feral, call it from wherever. the function said "I fear no concurrency." π₯
π AVAILABILITY π
this function is available since SDL 3.2.0. so if you're on something olderβ¦ girl. upgrade. π
lowkey reminder: this is a bool returning function, so don't go expecting some elaborate struct or a pointer to a tablet object. it's a yes-or-no situation and she ate that. π
Simple Directmedia Layer brought you this page, version SDL 3.4.18, and the date on the original footer was SDL_IsTablet(3). mwah. take care of her. π«Άππ¦β¨
π¦ 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