Commit 172865ff137532123ec06177119be163ba1811f5

Sam Lantinga 2022-09-16T09:16:18

Don't enumerate HID devices on macOS if we don't have input monitoring permissions Unfortunately the only way to detect this is to actually try opening a device, so we wait until the application tries, and then stop enumerating afterwards. Fixes https://github.com/libsdl-org/SDL/issues/5781