[macOS] Enable input from controllers in the background.

This commit is contained in:
bruvzg 2024-02-28 21:25:47 +02:00
parent df78c0636d
commit 77e92dda0f
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38

View file

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