As of using the keyboard module, the game doesn't run on OS X anymore as user. The documentation describes this as a security limitation (btw, same for Linux).
pygame 2.0.1 (SDL 2.0.14, Python 3.9.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
FlexChainGame set-up and ready to go
Exception in thread Thread-1:
Traceback (most recent call last):
File "Python.framework/Versions/3.9/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "Python.framework/Versions/3.9/lib/python3.9/threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "~/Library/Python/3.9/lib/python/site-packages/keyboard/__init__.py", line 294, in listen
_os_keyboard.listen(self.direct_callback)
File "~/Library/Python/3.9/lib/python/site-packages/keyboard/_darwinkeyboard.py", line 430, in listen
raise OSError("Error 13 - Must be run as administrator")
OSError: Error 13 - Must be run as administrator
Could you please include the "legacy" keyboard monitoring code?
As of using the keyboard module, the game doesn't run on OS X anymore as user. The documentation describes this as a security limitation (btw, same for Linux).
Could you please include the "legacy" keyboard monitoring code?