sdlJoystickHasLed function
Query whether a joystick has an LED.
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 query \return SDL_TRUE if the joystick has a modifiable LED, SDL_FALSE otherwise.
\since This function is available since SDL 2.0.14.
extern DECLSPEC SDL_bool SDLCALL SDL_JoystickHasLED(SDL_Joystick *joystick)
Implementation
bool sdlJoystickHasLed(Pointer<SdlJoystick> joystick) {
final sdlJoystickHasLedLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlJoystick> joystick),
int Function(Pointer<SdlJoystick> joystick)>('SDL_JoystickHasLED');
return sdlJoystickHasLedLookupFunction(joystick) == 1;
}