strobe on keypad

This commit is contained in:
Patrick Moessler 2023-03-05 02:36:41 +01:00
parent 613f1acaa1
commit 006885d60a

View file

@ -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: