Function sdl2_sys::SDL_HapticQuery

source ·
pub unsafe extern "C" fn SDL_HapticQuery(
    haptic: *mut SDL_Haptic
) -> c_uint
Expand description

\brief Gets the haptic device’s supported features in bitwise manner.

Example: \code if (SDL_HapticQuery(haptic) & SDL_HAPTIC_CONSTANT) { printf(“We have constant haptic effect!\n”); } \endcode

\param haptic The haptic device to query. \return Haptic features in bitwise manner (OR’d).

\sa SDL_HapticNumEffects \sa SDL_HapticEffectSupported