sdlGameControllerHasLed function
Query whether a game controller has an LED.
\param gamecontroller The controller to query \returns SDL_TRUE, or SDL_FALSE if this controller does not have a modifiable LED
\since This function is available since SDL 2.0.14.
extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerHasLED(SDL_GameController *gamecontroller)
Implementation
bool sdlGameControllerHasLed(Pointer<SdlGameController> gamecontroller) {
final sdlGameControllerHasLedLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlGameController> gamecontroller),
int Function(Pointer<SdlGameController> gamecontroller)>(
'SDL_GameControllerHasLED');
return sdlGameControllerHasLedLookupFunction(gamecontroller) == 1;
}