strobe on keypad
This commit is contained in:
parent
613f1acaa1
commit
006885d60a
1 changed files with 2 additions and 2 deletions
|
@ -235,10 +235,10 @@ class Beamshow:
|
||||||
elif event.key == pg.K_PAGEDOWN:
|
elif event.key == pg.K_PAGEDOWN:
|
||||||
self.beat_factor = self.beat_factor * 2
|
self.beat_factor = self.beat_factor * 2
|
||||||
print(f"Trigger on every {self.beat_factor} beat")
|
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
|
strobe = True
|
||||||
elif event.type == pg.KEYUP:
|
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
|
strobe = False
|
||||||
|
|
||||||
if reinitialize:
|
if reinitialize:
|
||||||
|
|
Loading…
Reference in a new issue