THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
Get the haptic device's supported features in bitwise manner.
unsigned int SDL_HapticQuery(SDL_Haptic * haptic);
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.
This function is available since SDL 3.0.0.
extern SDL_Haptic *haptic;
if (SDL_HapticQuery(haptic) & SDL_HAPTIC_CONSTANT) {
"We have constant haptic effect!");
SDL_Log( }
CategoryAPI, CategoryForceFeedback, CategoryDraft