|
Size: 1239
Comment: update content - pointers, structs
|
Size: 1264
Comment: Corrected function name in example.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 26: | Line 26: |
| if (SDL_HapticQueryEffects(haptic) & SDL_HAPTIC_CONSTANT) { printf("We have constant haptic effect!"); |
extern SDL_Haptic *haptic; if (SDL_HapticQuery(haptic) & SDL_HAPTIC_CONSTANT) { printf("We have constant haptic effect!"); |
DRAFT |
SDL_HapticQuery
Use this function to get the haptic devices device's supported features in bitwise matter manner.
Contents
Syntax
unsigned int SDL_HapticQuery(SDL_Haptic* haptic)
green
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.
green
Code Examples
extern SDL_Haptic *haptic;
if (SDL_HapticQuery(haptic) & SDL_HAPTIC_CONSTANT) {
printf("We have constant haptic effect!");
}
Remarks
You can add useful comments here
