Fix vibration duration on iOS

Fixes #61063
This commit is contained in:
Timo Schwarzer 2022-05-16 10:34:49 +02:00
parent 396def9b66
commit 05d524b624
No known key found for this signature in database
GPG Key ID: C4062DA320280737
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ void iOS::vibrate_haptic_engine(float p_duration_seconds) API_AVAILABLE(ios(13))
NSDictionary *hapticDict = @{
CHHapticPatternKeyPattern : @[
@{CHHapticPatternKeyEvent : @{
CHHapticPatternKeyEventType : CHHapticEventTypeHapticTransient,
CHHapticPatternKeyEventType : CHHapticEventTypeHapticContinuous,
CHHapticPatternKeyTime : @(CHHapticTimeImmediate),
CHHapticPatternKeyEventDuration : @(p_duration_seconds)
},