SFML - 'We got a keyboard without any keys (1)' message using Xcode

  • reeves_94
    Likes 0

    Problem Description

    Hi there,

    I’ve been following the SFML example as demonstrated in the video https://www.youtube.com/watch?v=hZ2WogmdLPo&list=PLRtjMdoYXLf7Lk_mJ0WiFNUJZOoDhIynr&index=13 and Xcode returns the message “We got a keyboard without any keys (1)” when I run the program after typing ‘sf::Keyboard::isKeyPressed’ (roughly 6 minutes into the video). Have you encountered such an issue before? If so then how do I go about fixing it? I’ve used the code from the file available on github and unfortunately I get the same message. Any assistance here would be much appreciated.

    Thanks in advance

    Matt

     

  • Sonar Systems admin
    Likes 0

    Mac?        

  • reeves_94
    Likes 0

    Yes I’m using MacOS Catalina, I forgot to specify in my question

  • Sonar Systems admin
    Likes 0

    On catalina its weird, you either need to allow in accessiblity after each build or build and run executable


    This reply has been verified.
  • reeves_94
    Likes 0

    I found that when I allowed accessibility, the program would run but as soon as I changed anything in the file the program wouldn’t run again. However, if I go to the directory where the executable is stored and run the program using the terminal it seems to work fine. Thanks for your assistance.

  • Sonar Systems admin
    Likes 0

    Yh its stupid, I have been working on a project and having to run from the exe

Login to reply