Function SDL_HapticOpened
pub unsafe extern "C" fn SDL_HapticOpened(device_index: i32) -> i32
Available on crate feature
dep_sdl2
only.Expand description
Check if the haptic device at the designated index has been opened.
\param device_index the index of the device to query \returns 1 if it has been opened, 0 if it hasn’t or on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_HapticIndex \sa SDL_HapticOpen