Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2013-09-01 19:04:31
Size: 1286
Comment: Updated usage of Color2 macro.
Revision 6 as of 2015-04-26 19:46:39
Size: 1268
Comment: Fixed typo, removed old formatting and hid comments in comments.
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,, ^manner^. Use this function to get the haptic device's supported features in bitwise manner.
Line 14: Line 14:
<<Color2(col=green,text="Should that say Uint8 or Uint16 etc instead of "unsigned int"?")>> /* <<Color2(col=green,text="Should that say Uint8 or Uint16 etc instead of "unsigned int"?")>> */
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 a negative error code on failure; call [[SDL_GetError]]() for more information.
Line 22: Line 22:
<<Color2(col=green,text="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?")>> /* <<Color2(col=green,text="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?")>> */

DRAFT

SDL_HapticQuery

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

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 a negative error code on failure; call SDL_GetError() for more information.

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


CategoryAPI, CategoryForceFeedback

None: SDL_HapticQuery (last edited 2017-07-14 21:53:15 by PhilippWiesemann)

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