Function SDL_JoystickSetLED
pub unsafe extern "C" fn SDL_JoystickSetLED(
joystick: *mut _SDL_Joystick,
red: u8,
green: u8,
blue: u8,
) -> i32
Available on crate feature
dep_sdl2
only.Expand description
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.
\param joystick The joystick to update \param red The intensity of the red LED \param green The intensity of the green LED \param blue The intensity of the blue LED \returns 0 on success, -1 if this joystick does not have a modifiable LED
\since This function is available since SDL 2.0.14.