Function sdl2_sys::SDL_JoystickSetLED[][src]

pub unsafe extern "C" fn SDL_JoystickSetLED(
    joystick: *mut SDL_Joystick,
    red: Uint8,
    green: Uint8,
    blue: Uint8
) -> c_int
Expand description

Update a joystick’s LED color.

\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

\return 0, or -1 if this joystick does not have a modifiable LED