Skip to content

Conversation

@ej-sanmartin
Copy link

@ej-sanmartin ej-sanmartin commented Nov 18, 2025

Fixes #1904

Changes

  • Pass seconds duration field from vibrate calls to void vibrate() method in /src/common/ios.mm that was previously being ignored.
  • Implemented duration based vibrate() iOS method using iOS 13+ CHHapticEngine.

Tested

  • Built successfully locally with the following command:
xcodebuild -project platform/xcode/love.xcodeproj \
  -scheme love-ios \
  -configuration Debug \
  -sdk iphonesimulator \
  -destination 'platform=iOS Simulator,name=iPhone 17' \
  clean build

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.

Support vibrate(intensity, mode) for iOS

1 participant