Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Haptic engine plugin for enhance vibration #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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