📜  如何检测pygame中是否按下了空格键 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:23.745000             🧑  作者: Mango

代码示例2
if event.key == pygame.K_SPACE: 
    #what ever you want to run