Function sdl2_sys::SDL_JoystickNameForIndex
source · pub unsafe extern "C" fn SDL_JoystickNameForIndex(
device_index: c_int,
) -> *const c_char
Expand description
Get the implementation dependent name of a joystick.
This can be called before any joysticks are opened.
\param device_index the index of the joystick to query (the N’th joystick on the system) \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_JoystickName \sa SDL_JoystickOpen