From 8b55b80056963359ad60e42f28a65dfdce43befe Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Mon, 16 May 2022 10:33:41 +0200 Subject: [PATCH] Fix vibration duration on iOS Fixes #61063 --- platform/iphone/ios.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/iphone/ios.mm b/platform/iphone/ios.mm index d6cc3df4324..56e38cbba62 100644 --- a/platform/iphone/ios.mm +++ b/platform/iphone/ios.mm @@ -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) },