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

Author Topic: We got a keyboard without any keys (1) (OSX Big Sur)  (Read 13030 times)

0 Members and 2 Guests are viewing this topic.

mtvee

  • Newbie
  • *
  • Posts: 7
    • View Profile
We got a keyboard without any keys (1) (OSX Big Sur)
« on: November 20, 2020, 01:53:23 pm »
I get this error "We got a keyboard without any keys (1)" all of a sudden after upgrade to Big Sur. I was going to put up a report on github but thought i would post here first incase I am doing something dumb or this is a known thing.

This happens with my code and the SFML example code as well so I didn't bother making a minimal example

System is:

macOS Big Sur 11.0.1
MacBook Air

SFML 2.5.1 built from source with cmake and default install

edit: here's a gist with minimal example https://gist.github.com/mtvee/e82ef146e7f1ef6c816e27d7a16a7a79

edit: if anyone can verify this one way or the other i would be grateful so I know where to dig. thanks!


edit: i think i got this pegged as some cruft from the Big Sur upgrade and not SFML. Apologies for the noise.
« Last Edit: November 23, 2020, 12:35:55 am by mtvee »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: We got a keyboard without any keys (1) (OSX Big Sur)
« Reply #1 on: November 23, 2020, 03:37:50 pm »
Just to confirm, yes, SFML works fine on Big Sur. :)

Keep in mind that since macOS Catalina, you'll get a popup at start, that requires keystrokes permission whenever you're using sf::Keyboard::isKeyPressed(). If you just use events, then you don't need to provide that permission.



The message you mentioned does originate from SFML, but not sure why you'd run into this on your end.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

mtvee

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: We got a keyboard without any keys (1) (OSX Big Sur)
« Reply #2 on: November 25, 2020, 04:41:16 pm »
I don't know why it happened. I wiped and reinstalled everything and it magically went away. Old libs, link one lib, use another at runtime? Sometimes cmake does weird things with caches and such too. Also using Clion and these IDEs are handy but sometimes you're never really sure what they are doing back there. Who knows? Sorry for noise. I should have just wiped it from the start.

achpile

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • Achpile's homepage
    • Email
Re: We got a keyboard without any keys (1) (OSX Big Sur)
« Reply #3 on: December 29, 2020, 04:53:10 pm »
I just faced this issue. If you run app from terminal - go to Security settings -> Then something with keyboard icon, then in the list mark the checkbox (terminal). And it should work fine. SFML is not the issue, it's MacOS's "feature"

 

anything