summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2024-07-14 15:49:48 -0500
committerMark Powers <mark@marks.kitchen>2024-07-14 15:49:48 -0500
commitd4c45c02890143fb8cfbc60be9d2b79240d9ad8e (patch)
treeb7fc54bbf17742609ed1bd84dbffb0f6f1064822 /util.py
Initial commitmain
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