Wpad is ready
INT wpad_is_ready ( <INT wpad_number> )
Returns whether controller wpad_number is ready to be used.
|INT wpad_number||- The controller whose state you want to retrieve. wpad_number must be a positive integer up to 8 (the maximum number of controllers supported by the Wii console).|
INT : Controller state; 1 means controller is ready and 0 means it's not.
Global int i; End Process Main() Begin while(! mouse.left) delete_text(ALL_TEXT) for(i=1; i<=8; i++) if(wpad_is_ready(i)) write(0,0,10*i,0,"Controller "+i+" is ready"); else write(0,0,10*i,0,"Controller "+i+" is not ready") end; end; frame; end; End