diff options
Diffstat (limited to 'src/sliceitoff/game/anykey.py')
-rw-r--r-- | src/sliceitoff/game/anykey.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sliceitoff/game/anykey.py b/src/sliceitoff/game/anykey.py new file mode 100644 index 0000000..6fd48a2 --- /dev/null +++ b/src/sliceitoff/game/anykey.py @@ -0,0 +1,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 |