From 87d9590f3ba2075f9813ed2a238fdec0c8a07c85 Mon Sep 17 00:00:00 2001 From: Rex Xiong Date: Sat, 27 Sep 2025 13:35:19 -0700 Subject: [PATCH] Update HapticContext.m --- VoidLink/Input/HapticContext.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VoidLink/Input/HapticContext.m b/VoidLink/Input/HapticContext.m index 6089dd4a..07749fe9 100644 --- a/VoidLink/Input/HapticContext.m +++ b/VoidLink/Input/HapticContext.m @@ -100,6 +100,10 @@ Log(LOG_W, @"Controller %d falls back to use iPhone Haptics for locality: %@", gamepad.playerIndex, locality); NSError *error = nil; _hapticEngine = [[CHHapticEngine alloc] initAndReturnError:&error]; + if (error != nil) { + Log(LOG_W, @"Controller %d: iPhone Haptic engine failed to start: %@", gamepad.playerIndex, error); + return nil; + } } else { return nil;