sdlJoystickGetType function
Get the type of an opened joystick.
\param joystick the SDL_Joystick obtained from SDL_JoystickOpen() \returns the SDL_JoystickType of the selected joystick.
\since This function is available since SDL 2.0.6.
extern DECLSPEC SDL_JoystickType SDLCALL SDL_JoystickGetType(SDL_Joystick *joystick)
Implementation
int sdlJoystickGetType(Pointer<SdlJoystick> joystick) {
final sdlJoystickGetTypeLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlJoystick> joystick),
int Function(Pointer<SdlJoystick> joystick)>('SDL_JoystickGetType');
return sdlJoystickGetTypeLookupFunction(joystick);
}