Skip to content

Commit

Permalink
Added a quit key shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
kitao committed Dec 25, 2023
1 parent 3717bba commit a38d65f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/pyxel/examples/14_synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ def __init__(self):
pyxel.run(self.update, self.draw)

def update(self):
if pyxel.btnp(pyxel.KEY_Q):
pyxel.quit()

for waveform_editor in self.waveform_editors:
waveform_editor.update()

Expand Down

0 comments on commit a38d65f

Please sign in to comment.