
Re: Joystick programming issues
To make it
compile, remove the { after the two joystick lines, and remove one of the } at the end
However... to make it
work:
a) remove that same {} pair, also remove the second "while(true) {" and another } at the end...
b) the joy1btn() function now returns true or false, so no need for an ==, (and I don't think it ever returned a 3?)
c) (cosmetic) when you put it all in one loop, (a above) you've got an extra getjoystick
d) (cosmetic) if you are only doing one thing for an if(), you don't need {}...
Portion of your code:
should probably be