SDL_SetJoystickLED

Update a joystick's LED color.

An example of a joystick LED is the light on the back of a PlayStation 4's DualShock 4 controller.

For joysticks with a single color LED, the maximum of the RGB values will be used as the LED brightness.

extern (C) nothrow @nogc extern
bool
SDL_SetJoystickLED

Parameters

joystick SDL_Joystick*

the joystick to update.

red Uint8

the intensity of the red LED.

green Uint8

the intensity of the green LED.

blue Uint8

the intensity of the blue LED.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Meta