pub unsafe extern "C" fn SDL_JoystickAttachVirtual(
    type_: SDL_JoystickType,
    naxes: c_int,
    nbuttons: c_int,
    nhats: c_int
) -> c_int
Expand description

Attach a new virtual joystick.

\returns the joystick’s device index, or -1 if an error occurred.

\since This function is available since SDL 2.0.14.