[][src]Function sdl2_sys::SDL_HapticGetEffectStatus

pub unsafe extern "C" fn SDL_HapticGetEffectStatus(
    haptic: *mut SDL_Haptic,
    effect: c_int
) -> c_int

\brief Gets the status of the current effect on the haptic device.

Device must support the ::SDL_HAPTIC_STATUS feature.

\param haptic Haptic device to query the effect status on. \param effect Identifier of the effect to query its status. \return 0 if it isn't playing, 1 if it is playing or -1 on error.

\sa SDL_HapticRunEffect \sa SDL_HapticStopEffect