SDL_GetRealGamepadTypeForID(3)
๐ SDL_GetRealGamepadTypeForID(3) ๐
okay bestie, this is a page from the SDL3 FUNCTIONS manual, and it's literally about finding out what kind of gamepad you're holding โ but the real kind, no filter, no edits. ๐ฎโจ
๐ธ NAME ๐ธ
SDL_GetRealGamepadTypeForID โ Get the type of a gamepad, ignoring any mapping override.
like, the actual type. the truth. no cap. ๐ซถ
โจ SYNOPSIS โจ
#include <SDL3/SDL_gamepad.h>
SDL_GamepadType SDL_GetRealGamepadTypeForID(SDL_JoystickID instance_id);
๐ DESCRIPTION ๐
This can be called before any gamepads are opened. periodt. ๐
ngl that's the whole vibe โ you don't have to wait for anything to be opened first, you can just ask.
๐ฆ FUNCTION PARAMETERS ๐ฆ
instance_idโ the joystick instance ID. that's the one, the identifier, the โจname tagโจ of your joystick.
๐ RETURN VALUE ๐
Returns the gamepad type. that's it, that's the tea. ๐
๐ง THREAD SAFETY ๐ง
It is safe to call this function from any thread. so go off, call it from wherever, it's giving unbothered. ๐
โญ AVAILABILITY โญ
This function is available since SDL 3.2.0. so if you're on something olderโฆ bestie. ๐ญ
๐ SEE ALSO ๐
go read those too, they're all in the same friend group fr fr ๐
mwah, that's a wrap! this page came to you from Simple Directmedia Layer, living its SDL 3.4.18 era ๐ธ๐ฆ โ stay iconic, go check your gamepad types, and ily, bye! ๐ โจ๐
๐ฆ 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