sdlHapticOpenFromMouse function

Pointer<SdlHaptic> sdlHapticOpenFromMouse()

Try to open a haptic device from the current mouse.

\returns the haptic device identifier or NULL on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_HapticOpen \sa SDL_MouseIsHaptic

extern DECLSPEC SDL_Haptic *SDLCALL SDL_HapticOpenFromMouse(void)

Implementation

Pointer<SdlHaptic> sdlHapticOpenFromMouse() {
  final sdlHapticOpenFromMouseLookupFunction = libSdl2.lookupFunction<
      Pointer<SdlHaptic> Function(),
      Pointer<SdlHaptic> Function()>('SDL_HapticOpenFromMouse');
  return sdlHapticOpenFromMouseLookupFunction();
}