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