summaryrefslogtreecommitdiff
path: root/src/sliceitoff/game/anykey.py
blob: bd2a3c77b64edba675c860e11c0bfd630227732b (plain)
1
2
3
4
5
6
7
8
9
""" game.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