DRAFT

SDL_HapticQuery

Use this function to get the haptic devices device's supported features in bitwise matter manner.

Syntax

unsigned int SDL_HapticQuery(SDL_Haptic* haptic)

Should that say Uint8 or Uint16 etc instead of "unsigned int"?

Function Parameters

haptic

the SDL_Haptic device to query

Return Value

Returns a list of supported haptic features in bitwise manner (OR'd), or a negative error code on failure; call SDL_GetError() for more information.

It seems there is probably a more clear or complete way to describe this... Is there a struct that should be Included here? Maybe the SDL_HapticEffect union?

Code Examples

if (SDL_HapticQueryEffects(haptic) & SDL_HAPTIC_CONSTANT) {
printf("We have constant haptic effect!");
}

Remarks

You can add useful comments here


CategoryAPI, CategoryForceFeedback

SDL_HapticQuery (last edited 2010-10-11 22:55:12 by SheenaSmith)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit