SDL_HINT_JOYSTICK_RAWINPUT(3)

πŸ’– SDL_HINT_JOYSTICK_RAWINPUT(3) πŸ’–

okay bestie, pull up a chair β€” this is a page from the SDL3 FUNCTIONS manual set, and it's about one tiny little hint that decides a whole vibe for your joysticks. No cap.


✨ NAME ✨

SDL_HINT_JOYSTICK_RAWINPUT β€” a variable controlling whether the RAWINPUT joystick drivers should be used for better handling XInput-capable devices.

Like, it's literally the switch that says "hey, should we use the RAWINPUT drivers or not?"


✨ SYNOPSIS ✨

#include <SDL3/SDL_hints.h>

#define SDL_HINT_JOYSTICK_RAWINPUT "SDL_JOYSTICK_RAWINPUT"

So you pull in the header, and the hint has a name β€” the string "SDL_JOYSTICK_RAWINPUT" β€” and that's the exact string you hand over when you set it. Copy it character for character, bestie, don't freestyle it. πŸŽ€


✨ DESCRIPTION ✨

The variable can be set to the following values:

  • "0" β€” RAWINPUT drivers are not used. This is the default, so if you say nothing at all, this is the energy you get. πŸ™ˆ
  • "1" β€” RAWINPUT drivers are used. Slay. πŸ’…
🫢 This hint should be set before SDL is initialized. Like, before. If you roll up late to the party and try to set it after SDL is already up and running, that's on you, girlie.

✨ AVAILABILITY ✨

This hint is available since SDL 3.2.0. So if you're on anything older, it's giving "who is she" and you simply won't find her. 😭


and that's the whole page, periodt. This lil slice of documentation came to you courtesy of Simple Directmedia Layer, version SDL 3.4.18, and it's the SDL_HINT_JOYSTICK_RAWINPUT(3) page itself β€” the one and only, no understudy. Go forth and configure your joysticks, icon. πŸ‘‘πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from