8000 Z long-press should go to the menu, not restart the game. · python-ugame/circuitpython-stage@e211d39 · GitHub
[go: up one dir, main page]

Skip to content

Commit e211d39

Browse files
cwaltherdeshipu
authored andcommitted
Z long-press should go to the menu, not restart the game.
1 parent a2e540e commit e211d39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pewpew_m4/ugame.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def get_pressed(self):
4141
now = time.monotonic()
4242
if self.last_z_press:
4343
if now - self.last_z_press > 2:
44+
supervisor.set_next_code_file(None)
4445
supervisor.reload()
4546
else:
4647
self.last_z_press = now

0 commit comments

Comments
 (0)
0