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

Attaches a new virtual joystick.

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