SDL_HINT_JOY...HIDAPI_SINPUT(3)

๐Ÿ“ฆ
version 3.4.18 ยท 5 versions
, in fedora 43, fedora 44

๐Ÿ’– 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