diff options
author | Mark Powers <mark@marks.kitchen> | 2024-07-14 15:49:48 -0500 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2024-07-14 15:49:48 -0500 |
commit | d4c45c02890143fb8cfbc60be9d2b79240d9ad8e (patch) | |
tree | b7fc54bbf17742609ed1bd84dbffb0f6f1064822 /util.py |
Initial commitmain
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |