Skip to main content

SDL_GetHapticFeatures

Function SDL_GetHapticFeatures 

Source
pub unsafe extern "C" fn SDL_GetHapticFeatures(
    haptic: *mut SDL_Haptic,
) -> Uint32
Expand description

Get the haptic device’s supported features in bitwise manner.

Parameter: haptic the SDL_Haptic device to query. Returns: a list of supported haptic features in bitwise manner (OR’d), or 0 on failure; call SDL_GetError() for more information.

Available Since: This function is available since SDL 3.2.0.

See Also: SDL_HapticEffectSupported See Also: SDL_GetMaxHapticEffects