SDL_HINT_JOY...GAMEINPUT_RAW(3)
π SDL_HINT_JOY...GAMEINPUT_RAW(3) π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, pls sit down, hydrate, and let me tell you about the cutest little hint macro you ever did see π«Ά
β¨ NAME β¨
SDL_HINT_JOYSTICK_GAMEINPUT_RAW β a variable that controls whether GameInput should be used for handling GIP devices that require raw report processing, but aren't supported by HIDRAW, such as Xbox One Guitars. πΈ
yes the header up top abbreviates it as SDL_HINT_JOY...GAMEINPUT_RAW because girl, that full name is long, but the real one is the full one. no cap.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_GAMEINPUT_RAW "SDL_JOYSTICK_GAMEINPUT_RAW"
like, that's it. that's the whole vibe. one #define, one string, and the string is literally the name again. iconic behavior honestly. π
π DESCRIPTION π
First thing, and this is important so listen up: this is only supported with GameInput 3 or newer. not 2, not 1, 3 or newer. periodt. β¨
So the variable can be set to the following values:
"0"β GameInput is not used to handle raw GIP devices. nope, not today. π"1"β GameInput is used. slay. π
And the default? The default is "1" when using GameInput 3 or newer, and is "0" otherwise. so if you're on the new hotness it's already on for you, and if you're not, it's off. lowkey fair.
β οΈ This hint should be set before SDL is initialized. fr fr, set it early or it won't do the thing. don't come crying to me later bestie π
π AVAILABILITY π
This hint is available since SDL 3.4.4. so if you're on something older, it's giving β¨nothingβ¨ and you gotta update. π¦
that's the whole page, you understood it perfectly, I'm so proud of you. go forth and raw-report-process those Xbox One Guitars. ππΈ
β written for Simple Directmedia Layer, version SDL 3.4.18, and yes, the page title is literally SDL_HINT_JOY...GAMEINPUT_RAW(3). byeeee π«Άβ¨
π¦ 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