Skip to content
Snippets Groups Projects
Verified Commit 45f29fcd authored by dos's avatar dos
Browse files

wurzelitzer: Pause on app button press

parent 010b1bd7
No related branches found
No related tags found
No related merge requests found
Pipeline #7961 passed
......@@ -48,6 +48,11 @@ class App(Application):
if self._stream_no < 0:
self._stream_no = 0
self.load_stream()
if self.input.buttons.app.middle.pressed:
if media.is_playing():
media.pause()
else:
media.play()
media.think(delta_ms)
def draw(self, ctx):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment