Mac OS X pygame input goes to Terminal instead of Python

前端 未结 2 1064
有刺的猬
有刺的猬 2020-12-19 05:40

I\'m having trouble running a pygame based app on Mac OS X via Terminal. Input events such as keystrokes go to the Terminal instead of my Python app, and are detected by py

2条回答
  •  醉话见心
    2020-12-19 06:34

    Can you check if the pygame.K_* constants actually correspond to the correct values for your keyboard? For the record I tried your code in Linux on a MacBook Pro and it seems to be working fine.

提交回复
热议问题