Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sf::isKeyPressed not working since macOS update  (Read 1927 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 1
    • View Profile
sf::isKeyPressed not working since macOS update
« 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?



  • SFML Team
  • Hero Member
  • *****
  • Posts: 10911
    • View Profile
    • development blog
    • Email
Re: sf::isKeyPressed not working since macOS update
« Reply #1 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.

Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
Dev Blog: https://duerrenberger.dev/blog/