summaryrefslogtreecommitdiff
path: root/src/sliceitoff/menu/anykey.py
blob: 0916ec306aecd76b3fe12370600ecba94f3b3dd1 (plain)
1
2
3
4
5
6
7
8
9
""" menu.anykey - Event waiting. Used for skipping screens. """
import pygame

def anykey():
    """ Anything but mouse movement gives True """
    for event in pygame.event.get():
        if event.type in (pygame.MOUSEBUTTONDOWN, pygame.KEYDOWN, pygame.QUIT):
            return True
    return False