|
Size: 886
Comment: Added Version section.
|
← Revision 5 as of 2016-07-15 20:19:00 ⇥
Size: 882
Comment: Removed old formatting.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 16: | Line 16: |
| ||'''haptic'''||^the^ SDL_Haptic device to ,,get the index of,, ^query^|| | ||'''haptic'''||the SDL_Haptic device to get the index of /* query*/ || |
| Line 19: | Line 19: |
| Returns the index of the ^specified^ haptic device or a negative error code on failure; call [[SDL_GetError]]() for more information. | Returns the index of the specified haptic device or a negative error code on failure; call [[SDL_GetError]]() for more information. |
DRAFT |
SDL_HapticIndex
Use this function to get the index of a haptic device.
Contents
Syntax
int SDL_HapticIndex(SDL_Haptic* haptic)
Function Parameters
haptic |
the SDL_Haptic device to get the index of |
Return Value
Returns the index of the specified haptic device or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
Version
This function is available since SDL 2.0.0.
