summaryrefslogtreecommitdiff
path: root/src/sliceitoff/game/anykey.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-04-27 16:26:22 +0300
committerViljami Ilola <+@hix.fi>2024-04-27 16:26:22 +0300
commit9f8247dc4da89219b6eede08d58d96964391a077 (patch)
treea6f7dc46275a3988fc528072f5e70caba461fae0 /src/sliceitoff/game/anykey.py
parentd64c6b122eacd7b33bbda3a62093b492c786b1f9 (diff)
refactor menus and screen showing under menu subpkg
Diffstat (limited to 'src/sliceitoff/game/anykey.py')
-rw-r--r--src/sliceitoff/game/anykey.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/sliceitoff/game/anykey.py b/src/sliceitoff/game/anykey.py
deleted file mode 100644
index bd2a3c7..0000000
--- a/src/sliceitoff/game/anykey.py
+++ /dev/null
@@ -1,9 +0,0 @@
-""" 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