SDL_GetGamepadVendor(3)
π SDL_GetGamepadVendor(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, this one lives in SDL_GetGamepadVendor(3) and it's genuinely so simple you're gonna slay it π
β¨ NAME β¨
SDL_GetGamepadVendor β grab the USB vendor ID of a gamepad you've already opened, if it's available π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_gamepad.h>
Uint16 SDL_GetGamepadVendor(SDL_Gamepad *gamepad);
π¦ DESCRIPTION π¦
so like, you hand it a gamepad, it hands you back the vendor ID. that's the whole vibe π«Ά
but lowkey, if the vendor ID isn't available, this function just returns 0. no drama, no error, just a zero. noted. π
π FUNCTION PARAMETERS π
gamepadβ the gamepad object you wanna query, bestie. that's it, that's the whole input. β¨
π RETURN VALUE π
returns the USB vendor ID, or zero if it's unavailable. no cap.
π₯ THREAD SAFETY π₯
it is safe to call this function from any thread. go off, queen π β thread it from wherever, it's fine.
π AVAILABILITY π
this function has been available since SDL 3.2.0. it's giving established. β
π« SEE ALSO π«
SDL_GetGamepadVendorForID(3)β the sibling function, go say hi π§
and that's the whole page, periodt π written up for Simple Directmedia Layer, version SDL 3.4.18 β and yeah, the original footer's date slot is just chillin' empty, so consider this your cute lil sign-off instead. bye bestie, go query some gamepads πβ¨πΈ
π¦ 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