SDL_HINT_JOY...IXAXIS_DRIVER(3)
π NAME π
SDL_HINT_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER β okay so bestie, this is the variable that decides whether the Sony driver (sixaxis.sys) for PS3 controllers (Sixaxis/DualShock 3) should be used or not. That's it, that's the whole job. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER "SDL_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER"
Like, you pull it in with the header, and the hint name literally is its own string. Iconic behavior honestly. π
π¦ DESCRIPTION π¦
So the way this works is you set the variable to one of these two values, and it's giving very much binary:
- "0" β the Sony driver (
sixaxis.sys) is not used. Nope. Not today. π - "1" β the Sony driver (
sixaxis.sys) is used. Slay, we're doing this. π₯
The default value is 0. So if you don't say anything, it's a no on the Sony driver. Periodt.
β οΈ Real talk though β this hint should be set before initializing joysticks and gamepads. Like, before. If you set it after, bestie, it's not gonna do the thing. Timing is everything, iykyk. π
πΈ AVAILABILITY πΈ
This hint is available since SDL 3.2.0. So if you're on anything older... not to be dramatic but it's not there. π
And that's the whole page, bestie! Written by the fine folks at Simple Directmedia Layer, this is from SDL version 3.4.18, and yeah, go forth and configure your PS3 controller vibes responsibly. Main character energy only. π«Άπβ¨
π¦ 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