summaryrefslogtreecommitdiff
path: root/platform/iphone
diff options
context:
space:
mode:
authorTimo Schwarzer <timo@schwarzer.dev>2022-05-16 10:34:49 +0200
committerTimo Schwarzer <timo@schwarzer.dev>2022-05-16 10:34:49 +0200
commit05d524b624c58f3aff26382df739d1b7c7b5c790 (patch)
treeb5a79f1f99228042c905d2f234371629bcda6065 /platform/iphone
parent396def9b66c476f7834604adb7136ca903ed01be (diff)
Fix vibration duration on iOS
Fixes #61063
Diffstat (limited to 'platform/iphone')
-rw-r--r--platform/iphone/ios.mm2
1 files changed, 1 insertions, 1 deletions
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)
},