sdlJoystickFromInstanceId function
Get the SDL_Joystick associated with an instance id.
\param instance_id the instance id to get the SDL_Joystick for \returns an SDL_Joystick on success or NULL on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.4.
extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickFromInstanceID(SDL_JoystickID instance_id)
Implementation
Pointer<SdlJoystick> sdlJoystickFromInstanceId(int instanceId) {
final sdlJoystickFromInstanceIdLookupFunction = libSdl2.lookupFunction<
Pointer<SdlJoystick> Function(Int32 instanceId),
Pointer<SdlJoystick> Function(
int instanceId)>('SDL_JoystickFromInstanceID');
return sdlJoystickFromInstanceIdLookupFunction(instanceId);
}