From d4c45c02890143fb8cfbc60be9d2b79240d9ad8e Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sun, 14 Jul 2024 15:49:48 -0500 Subject: Initial commit --- util.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 util.py (limited to 'util.py') 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 -- cgit v1.2.3