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 true if the device is a tablet πŸ’š
  • returns false otherwise πŸ’”

🧚 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