getMappings static method

Pointer<Pointer<Int8>> getMappings(
  1. Pointer<Int32> count
)

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)

{@category gamepad}

Implementation

static Pointer<Pointer<Int8>> getMappings(Pointer<Int32> count) =>
    sdlGetGamepadMappings(count);