openHapticFromMouse method
Try to open a haptic device from the current mouse.
Implementation
Haptic openHapticFromMouse() {
final pointer = sdl.SDL_HapticOpenFromMouse();
if (pointer == nullptr) {
throw SdlError(-1, getError());
}
return Haptic(this, pointer);
}