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

Make game events emit haptic effects #2079

Merged
merged 1 commit into from Apr 14, 2022

Conversation

ulope
Copy link
Contributor

@ulope ulope commented Apr 4, 2022

Instead of a generic 'vibrate' game events now emit different haptic effects.

There are different effects for:

  • Regular move
  • Capture
  • Check
  • Draw
  • Win
  • Lose

Fixes: #1918

Caveat:
I have very little idea what I'm doing here. Haven't used capacitor before and it's been quite a while since I touched mobile dev.
Seems to work as expected though, both in "play against computer" and online play.

Instead of a generic 'vibrate' game events now emit different
haptic effects.

Fixes: lichess-org#1918
@veloce
Copy link
Collaborator

veloce commented Apr 7, 2022

It looks good! Going to test this now.

@veloce
Copy link
Collaborator

veloce commented Apr 7, 2022

Sorry there will be some delay on this one as I have currently an issue where Xcode doesn't let me run the app on my device. I think I need to update it but I have no stable connection at the moment to download the 12G.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use nicer taptic feedback on iOS instead of generic “vibrate”
2 participants