#pragma section-numbers off #pragma disable-camelcase || DRAFT|| = SDL_HapticIndex = Use this function to get the index of a haptic device. <> == Syntax == {{{#!highlight cpp int SDL_HapticIndex(SDL_Haptic* haptic) }}} == Function Parameters == ||'''haptic'''||the SDL_Haptic device to get the index of /* query*/ || == 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 == {{{#!highlight cpp You can add your code example here }}} == Remarks == ''You can add useful comments here'' == Version == This function is available since SDL 2.0.0. == Related Functions == .[[SDL_HapticOpen]] .[[SDL_HapticOpened]] ---- [[CategoryAPI]], [[CategoryForceFeedback]]