Read console input using pygame

后端 未结 5 1554
故里飘歌
故里飘歌 2021-01-13 08:56

Is there anyway to use pygame to get input from the console, rather than having to display a separate window to get input? I\'m using pygame to track how long the keys on th

5条回答
  •  执笔经年
    2021-01-13 09:26

    Try pygame.display.iconify(). This will hide the pygame screen, and you will still be able to detect keypresses.

提交回复
热议问题