You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Merge pull request #88978 from bruvzg/macos_bg_cont
[macOS] Enable input from controllers in the background.
This commit is contained in:
@@ -136,6 +136,10 @@
|
||||
JoypadMacOS::JoypadMacOS() {
|
||||
observer = [[JoypadMacOSObserver alloc] init];
|
||||
[observer startObserving];
|
||||
|
||||
if (@available(macOS 11.3, *)) {
|
||||
GCController.shouldMonitorBackgroundEvents = YES;
|
||||
}
|
||||
}
|
||||
|
||||
JoypadMacOS::~JoypadMacOS() {
|
||||
|
||||
Reference in New Issue
Block a user