Fix vibration duration on iOS

Fixes #61063
This commit is contained in:
Timo Schwarzer 2022-05-16 10:33:41 +02:00
parent 3762b40de7
commit 8b55b80056
No known key found for this signature in database
GPG Key ID: C4062DA320280737
1 changed files with 1 additions and 1 deletions

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)
}, },