
[英]Trying to accept the keyboard input 'R' alone or along side any other amount of keyboard inputs using either keyboard or pygame modules
问题是代码无法检测到当我按住“w”和/或“空格”时是否按下了“r”...(实际上是任何键) 我尝试使用 try and except 来处理任意键 + 'r' 的组合。 但它没有用。 我所需要的只是让代码能够检测到“r”输入,即使我同时按下/按住另一个键也是如此。 然后,代码等待 0.2 秒,然后 ...