sdlGameControllerHasRumble function
Query whether a game controller has rumble support.
\param gamecontroller The controller to query \returns SDL_TRUE, or SDL_FALSE if this controller does not have rumble support
\since This function is available since SDL 2.0.18.
\sa SDL_GameControllerRumble
extern DECLSPEC SDL_bool SDLCALL SDL_GameControllerHasRumble(SDL_GameController *gamecontroller)
Implementation
bool sdlGameControllerHasRumble(Pointer<SdlGameController> gamecontroller) {
final sdlGameControllerHasRumbleLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlGameController> gamecontroller),
int Function(Pointer<SdlGameController> gamecontroller)>(
'SDL_GameControllerHasRumble');
return sdlGameControllerHasRumbleLookupFunction(gamecontroller) == 1;
}