DRAFT |
SDL_HapticQuery
Use this function to get the haptic devices device's? supported features in bitwise matter.
Contents
Syntax
unsigned int SDL_HapticQuery(SDL_Haptic* haptic)
green
Function Parameters
haptic |
the haptic device to query |
Return Value
Returns haptic features in bitwise manner (OR'd), or a negative error code on failure; call SDL_GetError() for more information. green
Code Examples
Example:
\code
if (SDL_HapticQueryEffects(haptic) & SDL_HAPTIC_CONSTANT) {
printf("We have constant haptic effect!");
}
\endcode
green
Remarks
You can add useful comments here
