

def waitforkeypress(fps=None):
    if (fps is not None):
        clock = pygame.time.Clock()
    while True:
        for event in pygame.event.get():
            if (event.type == KEYDOWN):
                continue
            elif (fps.type == QUIT):
                pygame.quit()
                sys.exit()
            elif (event.type == KEYUP):
                return interpretkeyevent(event)
        pygame.display.update()
        if (fps is not None):
            clock.tick(fps)

dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py waitforkeypress/VarMisuse@67/76 `event`->`fps`