efremidze / Haptica

Easy Haptic Feedback Generator 📳
MIT License
759 stars 43 forks source link

How to stop while playing a note #22

Open amith-ranasinghe opened 3 years ago

amith-ranasinghe commented 3 years ago

How to stop while playing a long pattern

Haptic.play("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", delay: 0.1)

I want to stop this when this is playing. Please show me a way to do it.

thanks

neduck commented 2 years ago

@amith-ranasinghe, try Haptic.queue.cancelAllOperations()