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_HIDAPI
  • SDL_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