Wiki Page Content

Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2010-03-22 04:05:53
Size: 830
Editor: SheenaSmith
Comment: create page, add content (Rev 5321)
Revision 4 as of 2011-05-17 19:00:06
Size: 874
Editor: SheenaSmith
Comment: add SDL_GetError to RV
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
#pragma disable-camelcase #pragma camelcase off
Line 6: Line 6:
Use this function to get the implementation dependent name of a Haptic device. Use this function to get the implementation dependent name of a haptic device.
Line 19: Line 19:
Returns the name of the device or NULL on error. Returns the name of the device or NULL on failure; call [[SDL_GetError]]() for more information.

DRAFT

SDL_HapticName

Use this function to get the implementation dependent name of a haptic device.

Syntax

const char* SDL_HapticName(int device_index)

Function Parameters

device_index

index of the device to get it's name the name of / to query

Return Value

Returns the name of the device or NULL on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

This can be called before any joysticks are opened. If no name can be found, this function returns NULL.


CategoryAPI, CategoryForceFeedback

None: SDL_HapticName (last edited 2016-07-15 20:21:58 by PhilippWiesemann)

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