sdlHapticOpened function
Check if the haptic device at the designated index has been opened.
\param device_index the index of the device to query \returns 1 if it has been opened, 0 if it hasn't or on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_HapticIndex \sa SDL_HapticOpen
extern DECLSPEC int SDLCALL SDL_HapticOpened(int device_index)
Implementation
int sdlHapticOpened(int deviceIndex) {
final sdlHapticOpenedLookupFunction = libSdl2.lookupFunction<
Int32 Function(Int32 deviceIndex),
int Function(int deviceIndex)>('SDL_HapticOpened');
return sdlHapticOpenedLookupFunction(deviceIndex);
}