SDL_HINT_JOY...HIDAPI_SINPUT(3)
๐ SDL_HINT_JOYSTICK_HIDAPI_SINPUT ๐
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages โ section 3, obviously, we're being fancy today. this is SDL_HINT_JOYSTICK_HIDAPI_SINPUT and it's literally the little switch that decides whether the HIDAPI driver for SInput controllers gets to come to the party. ๐ฎโจ
๐ธ NAME ๐ธ
SDL_HINT_JOYSTICK_HIDAPI_SINPUT โ a variable controlling whether the HIDAPI driver for SInput controllers should be used.
๐ SYNOPSIS ๐
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_HIDAPI_SINPUT "SDL_JOYSTICK_HIDAPI_SINPUT"
๐ฆ DESCRIPTION ๐ฆ
okay so first thing, more info lives right here if you wanna go read the lore yourself: https://github.com/HandHeldLegend/SInput-HID
The variable can be set to the following values:
- "0": HIDAPI driver is not used.
- "1": HIDAPI driver is used. slay.
The default is the value of SDL_HINT_JOYSTICK_HIDAPI. (so if you never touched this one, it just copies whatever the big boss hint says โ no cap.)
โ ๏ธ This hint should be set before initializing joysticks and gamepads. set it late and it's giving "too late bestie, the controllers already woke up" ๐ญ
โจ AVAILABILITY โจ
This hint is available since SDL 3.4.0. ๐
Simple Directmedia Layer ยท SDL 3.4.18 ยท mwah, that's the whole page, go set your hints before init, ily ๐ ๐ซถ
๐ฆ 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