Skip to content

Conversation

@feelingsonice
Copy link

@feelingsonice feelingsonice commented Mar 3, 2023

The default Input.vibrate_handheld method is generic and don't support granular control over iOS's haptic engine, which support additional parameters like intensity and sharpness.

This allows you to trigger vibration with .vibrate(duration, intensity, sharpness)

There's also additional features like creating dynamic vibrations (Apple doc) I plan to add here, but wanted to create this PR first and see if there's any interest.

TODOs

  • add README
  • add dynamic control

@djrain
Copy link

djrain commented Jun 23, 2023

This sounds great! Would use for sure.

@richardvanderdys
Copy link

Is there any way we could get a release with the haptic engine uploaded? I cannot figure out how to compile it on my machine...

@AstralTomate
Copy link

I love it! Thank you very much! I was looking 4 days into this and finally got it to work thanks to your pull request! I hope this will be added at some point.
If you have issues compiling look into this:
#47
And maybe this:
https://github.com/LettucePie/ios-plugin-integrate-demo?tab=readme-ov-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants