Function sdl2_sys::SDL_HapticName

source ·
pub unsafe extern "C" fn SDL_HapticName(
    device_index: c_int
) -> *const c_char
Expand description

\brief Get the implementation dependent name of a haptic device.

This can be called before any joysticks are opened. If no name can be found, this function returns NULL.

\param device_index Index of the device to get its name. \return Name of the device or NULL on error.

\sa SDL_NumHaptics