summaryrefslogtreecommitdiff
path: root/src/sliceitoff/menu/anykey.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceitoff/menu/anykey.py')
-rw-r--r--src/sliceitoff/menu/anykey.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sliceitoff/menu/anykey.py b/src/sliceitoff/menu/anykey.py
new file mode 100644
index 0000000..0916ec3
--- /dev/null
+++ b/src/sliceitoff/menu/anykey.py
@@ -0,0 +1,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