[macOS] Enable input from controllers in the background.
This commit is contained in:
parent
df78c0636d
commit
77e92dda0f
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue