openHapticFromMouse method

Haptic openHapticFromMouse()

Try to open a haptic device from the current mouse.

SDL Docs

Implementation

Haptic openHapticFromMouse() {
  final pointer = sdl.SDL_HapticOpenFromMouse();
  if (pointer == nullptr) {
    throw SdlError(-1, getError());
  }
  return Haptic(this, pointer);
}