[−][src]Function sdl2_sys::SDL_HapticSetAutocenter
pub unsafe extern "C" fn SDL_HapticSetAutocenter(
haptic: *mut SDL_Haptic,
autocenter: c_int
) -> c_int
\brief Sets the global autocenter of the device.
Autocenter should be between 0 and 100. Setting it to 0 will disable autocentering.
Device must support the ::SDL_HAPTIC_AUTOCENTER feature.
\param haptic Haptic device to set autocentering on. \param autocenter Value to set autocenter to, 0 disables autocentering. \return 0 on success or -1 on error.
\sa SDL_HapticQuery