SDL_HINT_JOYSTICK_HIDAPI_PS3(3)
๐ SDL_HINT_JOYSTICK_HIDAPI_PS3 ๐
okay bestie, so this one lives in the SDL3 FUNCTIONS manual, and it's all about one lil' hint variable that decides whether the HIDAPI driver shows up for your PS3 controllers. that's it. that's the whole vibe. ๐ฎโจ
๐ธ NAME ๐ธ
SDL_HINT_JOYSTICK_HIDAPI_PS3 โ a variable controlling whether the HIDAPI driver for PS3 controllers should be used. literally just a yes/no switch, no cap.
โจ SYNOPSIS โจ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_HIDAPI_PS3 "SDL_JOYSTICK_HIDAPI_PS3"
๐ DESCRIPTION ๐
so the variable can be set to these values, and only these, okay?
- "0" โ HIDAPI driver is not used. nope. not today.
- "1" โ HIDAPI driver is used. slay, we're on. ๐
The default is the value of SDL_HINT_JOYSTICK_HIDAPI on macOS, and "0" on other platforms. so macOS is out here doing its own thing, as per usual. ๐
If you want the official Sony driver (sixaxis.sys), use SDL_HINT_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER instead. and if you're on Windows and want an alternative driver, go peek at https://github.com/ViGEm/DsHidMini โ it's giving options, iykyk.
โ ๏ธ bestie listen โ this hint should be set before initializing joysticks and gamepads. set it late and it's giving nothing. ๐ซถ
๐ฆ AVAILABILITY ๐ฆ
This hint is available since SDL 3.2.0. she's been here a minute, she's iconic. ๐
๐ SEE ALSO ๐
SDL_HINT_JOYSTICK_HIDAPISDL_HINT_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER
and that's the whole page, bestie! brought to you by the fine folks at Simple Directmedia Layer, running SDL 3.4.18 โ no date on this one, she's timeless like that. ๐โจ go forth and configure your PS3 controllers, 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