sdlGetJoysticks function
Get a list of currently connected joysticks.
\param count a pointer filled in with the number of joysticks returned, may be NULL. \returns a 0 terminated array of joystick instance IDs or NULL on failure; call SDL_GetError() for more information. This should be freed with SDL_free() when it is no longer needed.
\since This function is available since SDL 3.1.3.
\sa SDL_HasJoystick \sa SDL_OpenJoystick
extern SDL_DECLSPEC SDL_JoystickID * SDLCALL SDL_GetJoysticks(int *count)
Implementation
Pointer<Uint32> sdlGetJoysticks(Pointer<Int32> count) {
final sdlGetJoysticksLookupFunction = libSdl3.lookupFunction<
Pointer<Uint32> Function(Pointer<Int32> count),
Pointer<Uint32> Function(Pointer<Int32> count)>('SDL_GetJoysticks');
return sdlGetJoysticksLookupFunction(count);
}