Fix vibration duration on iOS

Fixes #61063
This commit is contained in:
Timo Schwarzer 2022-05-16 10:33:41 +02:00 committed by Relintai
parent cb6e070227
commit 2f2e3573bd

View File

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