Function SDL_JoystickAttachVirtual
pub unsafe extern "C" fn SDL_JoystickAttachVirtual(
type_: SDL_JoystickType,
naxes: i32,
nbuttons: i32,
nhats: i32,
) -> i32
Available on crate feature
dep_sdl2
only.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.