summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'util.py')
-rw-r--r--util.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/util.py b/util.py
new file mode 100644
index 0000000..df5c866
--- /dev/null
+++ b/util.py
@@ -0,0 +1,9 @@
+import pyxel
+
+def if_continue_button():
+ for k in [
+ pyxel.KEY_KP_ENTER, pyxel.KEY_RETURN, pyxel.KEY_SPACE
+ ]:
+ if pyxel.btnp(k):
+ return True
+ return False