sdlGetGamepadMappings function gamepad
Get the current gamepad mappings.
\param count a pointer filled in with the number of mappings returned, can be NULL. \returns an array of the mapping strings, NULL-terminated, or NULL on failure; call SDL_GetError() for more information. This is a single allocation that should be freed with SDL_free() when it is no longer needed.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
extern SDL_DECLSPEC char ** SDLCALL SDL_GetGamepadMappings(int *count)
Implementation
Pointer<Pointer<Int8>> sdlGetGamepadMappings(Pointer<Int32> count) {
final sdlGetGamepadMappingsLookupFunction = _libSdl
.lookupFunction<
Pointer<Pointer<Int8>> Function(Pointer<Int32> count),
Pointer<Pointer<Int8>> Function(Pointer<Int32> count)
>('SDL_GetGamepadMappings');
return sdlGetGamepadMappingsLookupFunction(count);
}