marcowindt / ds4macos

DSU Server for (DualShock 4 / DualSense) controllers for MacOS. To be used with the Dolphin emulator.
MIT License
56 stars 6 forks source link

Does not work in background #7

Closed marcowindt closed 2 years ago

marcowindt commented 3 years ago

When the app is in the background controller input is not processed and send to Dolphin. This is due to the GCController framework which does not allow this. A solution, although inconvenient, would be to switch to IOKit.HID framework which does allow running in the background.

adityajs12321 commented 2 years ago

@marcowindt I think the boolean value shouldMonitorBackgroundEvents (part of the GCController framework) should let the app forward inputs from the game controller even when in the background.

marcowindt commented 2 years ago

Ah you are absolutely right, thanks! Apparently the default setting changed since MacOS 11.3. I will release a new version with this fix.