update() required to read controls?
-
I thought the update() function was to update the screen graphics.... but it seems it's also required to read the controls?
If I want to wait for the "A" button to be pressed, then this works...
c=controls(0) while not c.a loop c=controls(0) update() repeat
But, if I miss out update()....
c=controls(0) while not c.a loop c=controls(0) repeat
...then I get "Stack overflow. Too many functions called, maximum memory for variables exceeded (line 3)"
-
update
also polls input internally, so you're correct- it is required for this!