Function SDL_JoystickName

pub unsafe extern "C" fn SDL_JoystickName(
    joystick: *mut _SDL_Joystick,
) -> *const i8
Available on crate feature dep_sdl2 only.
Expand description

Get the implementation dependent name of a joystick.

\param joystick the SDL_Joystick obtained from SDL_JoystickOpen() \returns the name of the selected joystick. If no name can be found, this function returns NULL; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_JoystickNameForIndex \sa SDL_JoystickOpen