I am using SDL2.0.16 and when I run my SDL app, macOS asks for permission to allow SDL to receive keystrokes from any application. My searching shows that this should have been fixed in SDL2.0.10 so I’m not sure why I am still getting it. I am running macOS version Big Sur on a M1 MacBook Air. I really can’t ship an app that shows this popup as it will scare away users.
I’m having the exact same issue, on Big Sur + M1 Mac. It could be specific to Apple Silicon macOS, because the security model is slightly different/upgraded over Intel macOS. For instance, Apple Silicon Mac apps must be codesigned to work at all, at the very least adhoc signed, but Intel apps on Apple Silicon do work unsigned.
Alright, figured out the API call that produces the request. It happens when you initialize the joystick subsystem. Attached is a source file containing examples that don’t produce the request, then a final example that does.main.c (1.9 KB)