sdlIsJoystickVirtual function
Query whether or not a joystick is virtual.
\param instance_id the joystick instance ID. \returns true if the joystick is virtual, false otherwise.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC bool SDLCALL SDL_IsJoystickVirtual(SDL_JoystickID instance_id)
Implementation
bool sdlIsJoystickVirtual(int instanceId) {
final sdlIsJoystickVirtualLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Uint32 instanceId),
int Function(int instanceId)>('SDL_IsJoystickVirtual');
return sdlIsJoystickVirtualLookupFunction(instanceId) == 1;
}