From 05d524b624c58f3aff26382df739d1b7c7b5c790 Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Mon, 16 May 2022 10:34:49 +0200 Subject: Fix vibration duration on iOS Fixes #61063 --- platform/iphone/ios.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/iphone') diff --git a/platform/iphone/ios.mm b/platform/iphone/ios.mm index cca28cc055..79baae028a 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) }, -- cgit v1.2.3