FrodeSolheim / fs-uae

Cross-platform Amiga emulator with a slight focus on gaming, but also with solid support for productivity apps including just-in-time (JIT) compilation.
https://fs-uae.net/
GNU General Public License v2.0
475 stars 95 forks source link

M1 "Keystroke Receiving" Issue. #259

Closed danielktdoranie closed 3 years ago

danielktdoranie commented 3 years ago

So I am running the native build of FS-UAE on my MacBook Air (M1, 2020) on macOS Big Sur 11.4 (20F71).

When I open FS-UAE Launcher I am prompted to grant FS-UAE Launcher access in System Preferences, "Keystroke Receiving" . I have granted this but I am still prompted every time I open FS-UAE Launcher, even though I have a blue checkmark next to FS-UAE Launcher.

See attached screenshots.

Screenshot 2021-06-22 at 16 16 37 Screenshot 2021-06-22 at 16 16 52
FrodeSolheim commented 3 years ago

I have figured out what causes the warning; it's because the launcher runs fs-uae-device-helper (from FS-UAE.app) in order to detect mouse devices (apparently, this uses low-level APIs that macOS now warns about). I don't know why the warning would re-appear every time though....

One possible solution is to only look for multiple mouse devices if the user enables an option for this in FS-UAE Launcher settings. It is after all a very seldom used feature (multiplayer Lemmings...).

FrodeSolheim commented 3 years ago

I've identifies two causes for this:

Support for multiple mice on macOS has been disabled in the latest v3.1 releases because of this - at least for now. I'm including a patch for SDL 2.0.16 (https://github.com/libsdl-org/SDL/issues/4887) which fixes the warning, and new builds of FS-UAE 3 and 4 are on the way with this patch included.

A fix for SDL is planned for inclusion in SDL 2.0.18, apparently.

FrodeSolheim commented 3 years ago

Closing this as fixed. Re-enabling multiple mice functionality is scheduled for 3.2: https://github.com/FrodeSolheim/fs-uae/issues/276