I am building a simple python script that runs functions that control the Unicorn HAT on the RPi. My Intention is to control this using mouse clicks.
while True:
for event in pygame.event.get()
print(event)
if event.type == pygame.MOUSEBUTTONDOWN:
if event.button == 1:
if upRun or tRun == 1: #Cancel any scrollers
upRun = 0
tRun = 0
n()
elif event.button == 2:
up()
else:
art()
On testing this I receive no output. Note I have called pygame.init() as required.
Polling all events results only in empty events.
forloop is incorrect - C_Z_