SDL_hid_get_...cturer_string(3)
β¨ NAME β¨
SDL_hid_get_manufacturer_string β bestie, we're grabbing the Manufacturer String off a HID device π
It's an SDL3 function, so that's the manual family it lives in. Slay.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hidapi.h>
int SDL_hid_get_manufacturer_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen);
π FUNCTION PARAMETERS π
okay so here's the three things you gotta hand over, no cap:
devβ a device handle that came back fromSDL_hid_open(). like, you gotta already have the device open, we can't just vibe-check a random pointer π«Άstringβ a wide string buffer where the data gets dropped. this is where the manufacturer name goes, so make sure it's got room β¨maxlenβ the length of that buffer, counted in multiples ofwchar_t. yes bestie, multiples ofwchar_t, not bytes π
π RETURN VALUE π
Returns 0 on success, or a negative error code if it didn't work out π. When it fails, call SDL_GetError() for more info β that's where the tea is.
π¦ AVAILABILITY π¦
This function has been available since SDL 3.2.0. so if you're on something older, it's giving "not yet" π
lowkey reminder: this is the manufacturer string, not the product string or the serial number. don't mix them up, i'm begging π§
and that's the whole page, periodt π this little legend comes to you from Simple Directmedia Layer, version SDL 3.4.18 β mwah, love that for us πβ
π¦ 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