From 2f2e3573bd6d49265e3eee24c11e3b80b80e398c 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 d6cc3df43..56e38cbba 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) },