SFML community forums

Help => System => Topic started by: kobi on August 22, 2022, 12:12:06 pm

Title: sf::isKeyPressed not working since macOS update
Post by: kobi on August 22, 2022, 12:12:06 pm
Hi all,

I'm using a mac and have just updated to macOS 12.5.1 today and since updating sf::isKeyPressed is not registering any keyboard inputs. It was working fine before the update and my IDE has permission to access keyboard inputs in system preferences/security & privacy. Has anyone else experienced this or know how to fix it?

Thanks!
Title: Re: sf::isKeyPressed not working since macOS update
Post by: eXpl0it3r on August 23, 2022, 02:24:27 am
Not the IDE needs permissions set, but your application.
More specifically it needs input monitoring permission for sf::Keyboard::isKeyPressed. Alternatively you could also use events instead.