Function fermium::joystick::SDL_JoystickSetLED
source · pub unsafe extern "C" fn SDL_JoystickSetLED(
joystick: *mut SDL_Joystick,
red: u8,
green: u8,
blue: u8
) -> c_int
Expand description
Update a joystick’s LED color.
joystick
The joystick to updatered
The intensity of the red LEDgreen
The intensity of the green LEDblue
The intensity of the blue LED
Returns: 0, or -1 if this joystick does not have a modifiable LED.