|
⇤ ← Revision 1 as of 2010-03-22 17:01:17
Size: 1313
Comment: create page, add content (Rev 5321)
|
Size: 1235
Comment: minor change
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| Use this function to get the haptic devices ^device's?^ supported features in bitwise matter. | Use this function to get the haptic ,,devices,, ^device's^ supported features in bitwise ,,matter,, ^manner^. |
| Line 20: | Line 20: |
| Returns haptic features in bitwise manner (OR'd), or a negative error code on failure; call [[SDL_GetError]]() for more information. <<Color2(green,It seems there is probably a more clear way to describe this but I don't think I have enough info to make a specific suggestion on this one.)>> | 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. <<Color2(green,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?)>> |
| Line 24: | Line 26: |
| Example: \code |
|
| Line 29: | Line 29: |
| \endcode | |
| Line 31: | Line 30: |
| <<Color2(green,Should \code and \endcode be removed from the example? Should the word Example also be removed?)>> |
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 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
if (SDL_HapticQueryEffects(haptic) & SDL_HAPTIC_CONSTANT) {
printf("We have constant haptic effect!");
}
Remarks
You can add useful comments here
