Function SDL_GetHapticEffectStatus
pub unsafe extern "C" fn SDL_GetHapticEffectStatus(
haptic: *mut SDL_Haptic,
effect: i32,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Get the status of the current effect on the specified haptic device.
Device must support the SDL_HAPTIC_STATUS
feature.
§Parameters
haptic
: theSDL_Haptic
device to query for the effect status on.effect
: the ID of the haptic effect to query its status.
§Return value
Returns true if it is playing, false if it isn’t playing or haptic status isn’t supported.
§Availability
This function is available since SDL 3.2.0.