Read console input using pygame

后端 未结 5 1667
故里飘歌
故里飘歌 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:06

    If you just plain don't want a window of any kind at all, you can use PyHook. If you just want a console application, get user input with the built-in Python command "raw_input(...)".

提交回复
热议问题