|
Size: 1331
Comment: Added Version section.
|
← Revision 9 as of 2017-07-14 21:53:15 ⇥
Size: 1311
Comment: Fixed return value description (Feedback 2017-07-14).
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 20: | Line 20: |
| 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. | Returns a list of supported haptic features in bitwise manner (OR'd), or 0 on failure; call [[SDL_GetError]]() for more information. |
DRAFT |
SDL_HapticQuery
Use this function to get the haptic device's supported features in bitwise manner.
Contents
Syntax
unsigned int SDL_HapticQuery(SDL_Haptic* haptic)
Function Parameters
haptic |
the SDL_Haptic device to query |
Return Value
Returns a list of supported haptic features in bitwise manner (OR'd), or 0 on failure; call SDL_GetError() for more information.
Code Examples
extern SDL_Haptic *haptic;
if (SDL_HapticQuery(haptic) & SDL_HAPTIC_CONSTANT) {
SDL_Log("We have constant haptic effect!");
}
Remarks
You can add useful comments here
Version
This function is available since SDL 2.0.0.
