SDL_GetGamep...tVersionForID(3)
π NAME π
SDL_GetGamepadProductVersionForID β bestie, this one hands you the product version of a gamepad, if it's even available like that. β¨
Oh and hey, welcome to the SDL3 FUNCTIONS corner of the manual, the SDL_GetGamep...tVersionForID(3) page, no cap. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_gamepad.h>
Uint16 SDL_GetGamepadProductVersionForID(SDL_JoystickID instance_id);
β¨ DESCRIPTION β¨
Okay so here's the tea: you can call this one before any gamepads are even opened. Iconic behaviour, honestly. π
But β and listen β if the product version isn't available? It just returns 0. Not a vibe, but that's the deal. π«Ά
π¦ FUNCTION PARAMETERS π¦
instance_idβ the joystick instance ID. that's it, that's the whole parameter, she's simple like that π
π RETURN VALUE π
Returns the product version of the selected gamepad. π
And if you called it on an invalid index, this function returns zero. Yeah. Zero. Not me getting nothing back π
π§ THREAD SAFETY π§
It is safe to call this function from any thread. Every single one. Go off, multithreaded queen. π
β AVAILABILITY β
This function is available since SDL 3.2.0. Periodt.
π₯ SEE ALSO π₯
and that's the whole page, bestie, you ate it up π
This lil masterpiece comes to you from Simple Directmedia Layer, living its SDL 3.4.18 era β shoutout to the SDL_GetGamep...tVersionForID(3) footer energy, we love a source and version glow-up. ππ
π¦
π¦ 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