sdlJoystickGetFirmwareVersion function
Get the firmware version of an opened joystick, if available.
If the firmware version isn't available this function returns 0.
\param joystick the SDL_Joystick obtained from SDL_JoystickOpen() \returns the firmware version of the selected joystick, or 0 if unavailable.
\since This function is available since SDL 2.24.0.
extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetFirmwareVersion(SDL_Joystick *joystick)
Implementation
int sdlJoystickGetFirmwareVersion(Pointer<SdlJoystick> joystick) {
final sdlJoystickGetFirmwareVersionLookupFunction = libSdl2.lookupFunction<
Uint16 Function(Pointer<SdlJoystick> joystick),
int Function(
Pointer<SdlJoystick> joystick)>('SDL_JoystickGetFirmwareVersion');
return sdlJoystickGetFirmwareVersionLookupFunction(joystick);
}