📜  pygame 获取按钮是否被释放 - Python 代码示例

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

代码示例1
for event in pygame.event.get() :
  if event.type == pygame.KEYDOWN :
    if event.key == pygame.K_SPACE :
      print "Space bar pressed down."