SDL_HINT_JOY...S5_PLAYER_LED(3)
β¨ NAME β¨
Okay bestie, listen up π β this is SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED, a hint variable that controls whether the player LEDs on a PS5 controller light up to show which player is associated with that controller. Like, it's giving "who's player one?" but make it β¨glowβ¨.
It lives in the SDL3 FUNCTIONS manual, so jot that down π.
π SYNOPSIS π
#include <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED "SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED"
No cap, that's the whole vibe check. π
πΈ DESCRIPTION πΈ
So the variable can be set to these values, and yes, there are literally two of them:
"0"β player LEDs are not enabled. π no little lights for you, bestie."1"β player LEDs are enabled. π₯ and this one is the default, so it's the main character unless you say otherwise.
That's it. That's the whole tea. π
π¦ AVAILABILITY π¦
This hint has been available since SDL 3.2.0 β β so if you're on anything older, she's not there yet, iykyk. π
Simple Directmedia Layer made this, version SDL 3.4.18, and the page is SDL_HINT_JOY...S5_PLAYER_LED(3). Sending you all the good vibes, bestie β go light up those LEDs πβ¨π«Ά
π¦ 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