Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 536
Posted: 11:43am 08 Dec 2020
Copy link to clipboard
Print this post
I'm trying to get a feel for the nunchuk and have a Wii nunchuk plugged into the front panel. The following program works fine:
wii nunchuk open do ? nunchuk(jx);@(120);nunchuk(jy) ' ? nunchuk(ax);@(120);nunchuk(ay);@(240);nunchuk(az) loop until nunchuk(z)=1 or nunchuk(c)=1
but if I remove the apostrophe from line four, the program prints some zeroes and stops without me pressing anything. Is this working right? If so my understanding of the nunchuk function is way off. I thought it should print the xy coordinates of the analog stick then print the x,y,z coordinates of the orientation and loop until I press a button. Should it?