From dcc6b10ded6fcb3966761428669622b21b5fc21b Mon Sep 17 00:00:00 2001 From: Sinon <34333654+Catta1997@users.noreply.github.com> Date: Fri, 19 Dec 2025 14:03:56 +0100 Subject: [PATCH] fix: controller fix On macOS Tahoe controller stop working when app is not active. This fix that issue --- PlayTools/Controls/Frontend/ControlMode.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/PlayTools/Controls/Frontend/ControlMode.swift b/PlayTools/Controls/Frontend/ControlMode.swift index 1913d842..ecbe96bf 100644 --- a/PlayTools/Controls/Frontend/ControlMode.swift +++ b/PlayTools/Controls/Frontend/ControlMode.swift @@ -81,6 +81,7 @@ public class ControlMode: Equatable { let centre = NotificationCenter.default let main = OperationQueue.main centre.addObserver(forName: NSNotification.Name.GCControllerDidConnect, object: nil, queue: main) { _ in + GCController.shouldMonitorBackgroundEvents = true GCController.current?.extendedGamepad?.valueChangedHandler = { profile, element in self.controllerAdapter.handleValueChanged(profile, element) }