SDL_KeyboardID(3type)
β¨ SDL_KeyboardID β¨
okay bestie, welcome to the SDL3 DATATYPES corner of the man pages π this one's about SDL_KeyboardID, and it's literally so simple you'll be done in like twelve seconds. periodt.
π NAME π
SDL_KeyboardID β this is a unique ID for a keyboard for the time it is connected to the system, and it is never reused for the lifetime of the application. no cap, never ever. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_keyboard.h>
typedef Uint32 SDL_KeyboardID;
that's it. that's the whole vibe. a typedef and a dream π¦
π DESCRIPTION π
so here's the tea π: if the keyboard gets disconnected and then reconnected, it will get a new ID. the old one does not come back, she has moved on and is living her best life.
also, heads up: the value 0 is an invalid ID. like, if you see a 0, that's not a keyboard, that's a void. do not trust it. π
π AVAILABILITY π
this datatype has been available since SDL 3.2.0. iconic behavior honestly, she's been serving since day one of 3.2. π
and that's the whole page, you ate it fr fr π β¨
Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_KeyboardID(3type) β mwah, ty for reading, go forth and identify your keyboards π«Άππ
π¦ 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