Attach a new virtual joystick.
Defined in SDL_joystick.h
int SDL_JoystickAttachVirtual(SDL_JoystickType type,
int naxes,
int nbuttons,
int nhats);
(int) Returns the joystick's device index, or -1 if an error occurred.
This function is available since SDL 2.0.14.