From 006885d60a7b849460df9e335aa5606736baefa8 Mon Sep 17 00:00:00 2001 From: Patrick Moessler Date: Sun, 5 Mar 2023 02:36:41 +0100 Subject: [PATCH] strobe on keypad --- beamshow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beamshow.py b/beamshow.py index 4ddb2f7..2266ade 100644 --- a/beamshow.py +++ b/beamshow.py @@ -235,10 +235,10 @@ class Beamshow: elif event.key == pg.K_PAGEDOWN: self.beat_factor = self.beat_factor * 2 print(f"Trigger on every {self.beat_factor} beat") - elif event.key == pg.K_RETURN: + elif event.key == pg.K_RETURN or event.key == pg.K_KP_ENTER: strobe = True elif event.type == pg.KEYUP: - if event.key == pg.K_RETURN: + if event.key == pg.K_RETURN or event.key == pg.K_KP_ENTER: strobe = False if reinitialize: