Returning Wiimote Connection Status January 17, 2009 12:47AM | Admin Registered: 15 years ago Posts: 5,132 |
if(wiimote_chan_0 is connected) do something(); if(wiimote_chan_1 is connected) do something(); //etc.
Re: Returning Wiimote Connection Status January 17, 2009 12:58AM | Registered: 15 years ago Posts: 6 |
bool WiiCmd::WiimoteConnected(int wiimote){ u32 type; int res = WPAD_Probe(wiimote, &type); if(res == WPAD_ERR_NONE){ return true; } return false; }
if(!w->WiimoteConnected(0)){ m->msg(" Waiting for Wiimote #1 to connect."); }
Re: Returning Wiimote Connection Status January 17, 2009 01:04AM | Admin Registered: 15 years ago Posts: 5,132 |