pub unsafe extern "C" fn SDL_GameControllerAddMappingsFromRW(
rw: *mut SDL_RWops,
freerw: c_int
) -> c_int
Expand description
Load a set of mappings from a seekable SDL data stream (memory or file).
This is filtered by the current SDL_GetPlatform
.
A community sourced database of controllers is available on github
If freerw
is non-zero, the stream will be closed after being read.
Returns: number of mappings added, -1 on error