1
General discussions / Re: Has anyone had any issues with SFML keyboard input on MacOS Catalina?
« on: September 19, 2019, 11:44:33 pm »
Aha, this is interesting. I kept searching and came across a totally irrelevant question where someone was having trouble setting the mouse cursor position and had to enable their game access to accessibility.
I thought, screw it, and had a look. It turns out my IDE (Rider) had asked for "Input Monitoring" permissions. I think this is new in Catalina, although apps should be able to monitor keyboard input while you are already within them...
In any case, enabling this (i.e. allowing reading keyboard input while another application is focused) setting on my IDE (not the game! perhaps it inherits it, since it's a sub-process, but I had also tried launching it from the terminal with dotnet to the same effect...) fixed it! I am totally perplexed why, but it works, so I'm happy.
I feel a bit embarrassed having solved this immediately after posting -- I've been struggling with this issue for a few days and was just about to start drafting up a minimal reproducible Objective-C example of this failing to report to an Apple help forum, but I'll leave this up incase anyone else in a similar position comes across this. I imagine there is probably very few people with a similar configuration (macOS, Rider, SFML.NET Core), but hopefully it helps someone
I thought, screw it, and had a look. It turns out my IDE (Rider) had asked for "Input Monitoring" permissions. I think this is new in Catalina, although apps should be able to monitor keyboard input while you are already within them...
In any case, enabling this (i.e. allowing reading keyboard input while another application is focused) setting on my IDE (not the game! perhaps it inherits it, since it's a sub-process, but I had also tried launching it from the terminal with dotnet to the same effect...) fixed it! I am totally perplexed why, but it works, so I'm happy.
I feel a bit embarrassed having solved this immediately after posting -- I've been struggling with this issue for a few days and was just about to start drafting up a minimal reproducible Objective-C example of this failing to report to an Apple help forum, but I'll leave this up incase anyone else in a similar position comes across this. I imagine there is probably very few people with a similar configuration (macOS, Rider, SFML.NET Core), but hopefully it helps someone