Skip to content

Commit

Permalink
Merge pull request #88978 from bruvzg/macos_bg_cont
Browse files Browse the repository at this point in the history
[macOS] Enable input from controllers in the background.
  • Loading branch information
akien-mga committed Feb 29, 2024
2 parents 6d9a529 + 77e92dd commit 90ed9a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/macos/joypad_macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ - (instancetype)init:(GCController *)controller {
JoypadMacOS::JoypadMacOS() {
observer = [[JoypadMacOSObserver alloc] init];
[observer startObserving];

if (@available(macOS 11.3, *)) {
GCController.shouldMonitorBackgroundEvents = YES;
}
}

JoypadMacOS::~JoypadMacOS() {
Expand Down

0 comments on commit 90ed9a5

Please sign in to comment.