summaryrefslogtreecommitdiff
path: root/src/sliceitoff/game/anykey.py
blob: 6fd48a2915ce14fcf671bd21e8d4b311d71a9c0a (plain)
1
2
3
4
5
6
7
import pygame

def anykey():
    for event in pygame.event.get():
        if event.type in (pygame.MOUSEBUTTONDOWN, pygame.KEYDOWN, pygame.QUIT):
            return True
    return False