In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Talk:How to use the Wiimote

From WiiBrew
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Some comments

Hi, I don't want to change the code, but this line is useless because it's going out the line after:

if(doreload) return 0;

If you are doing a switch, you shouldn't use a if just after evaluating the same condition.

if(res == WPAD_ERR_NONE) {

You are checking two times the same button

if(wd->btns_h & WPAD_BUTTON_1)

I dont how fast is the Wii process data, but I think it's always best to call less operation like cmp, mostly in a loop.
Thanks, for this great example, it's going to help me develop my application quickly. ­Crayon