From 77e92dda0ff1978f6eb59814758188cb388e32c5 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 28 Feb 2024 21:25:47 +0200 Subject: [PATCH] [macOS] Enable input from controllers in the background. --- platform/macos/joypad_macos.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/macos/joypad_macos.mm b/platform/macos/joypad_macos.mm index 2420bd73fb0..8cd5cdd9f27 100644 --- a/platform/macos/joypad_macos.mm +++ b/platform/macos/joypad_macos.mm @@ -136,6 +136,10 @@ JoypadMacOS::JoypadMacOS() { observer = [[JoypadMacOSObserver alloc] init]; [observer startObserving]; + + if (@available(macOS 11.3, *)) { + GCController.shouldMonitorBackgroundEvents = YES; + } } JoypadMacOS::~JoypadMacOS() {