Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-09-24 23:02:29
Size: 1235
Editor: SheenaSmith
Comment: minor change
Revision 3 as of 2010-10-11 22:55:12
Size: 1239
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
||'''haptic'''||the haptic device to query|| ||'''haptic'''||the SDL_Haptic device to query||

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)

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

if (SDL_HapticQueryEffects(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