Merge pull request #88978 from bruvzg/macos_bg_cont

[macOS] Enable input from controllers in the background.
This commit is contained in:
Rémi Verschelde 2024-02-29 13:54:57 +01:00
commit 90ed9a5de0
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -136,6 +136,10 @@
JoypadMacOS::JoypadMacOS() { JoypadMacOS::JoypadMacOS() {
observer = [[JoypadMacOSObserver alloc] init]; observer = [[JoypadMacOSObserver alloc] init];
[observer startObserving]; [observer startObserving];
if (@available(macOS 11.3, *)) {
GCController.shouldMonitorBackgroundEvents = YES;
}
} }
JoypadMacOS::~JoypadMacOS() { JoypadMacOS::~JoypadMacOS() {