We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e0897 commit a0075bdCopy full SHA for a0075bd
input/drivers_joypad/mfi_joypad.m
@@ -460,9 +460,9 @@ - (void)shutdown
460
{
461
if (@available(iOS 14, tvOS 14, macOS 11, *))
462
463
- if (_weakPlayer) [_weakPlayer cancelAndReturnError:nil];
464
- if (_strongPlayer) [_strongPlayer cancelAndReturnError:nil];
465
-
+ /* When controller disconnects, the haptic engine is already stopped
+ * by the system, so don't bother trying to cancel players - just
+ * clear the handlers and release everything. */
466
for (CHHapticEngine *eng in self.engines)
467
468
eng.stoppedHandler = ^(CHHapticEngineStoppedReason reason) {};
0 commit comments