Getting the number of attached controlers? August 15, 2008 09:51AM | Registered: 15 years ago Posts: 211 |
Re: Getting the number of attached controlers? August 15, 2008 10:51AM | Registered: 15 years ago Posts: 109 |
Re: Getting the number of attached controlers? August 15, 2008 11:28PM | Admin Registered: 15 years ago Posts: 5,132 |
Re: Getting the number of attached controlers? August 18, 2008 08:46AM | Registered: 15 years ago Posts: 109 |
Re: Getting the number of attached controlers? August 18, 2008 08:53AM | Registered: 15 years ago Posts: 211 |
Re: Getting the number of attached controlers? August 19, 2008 07:43AM | Registered: 15 years ago Posts: 7 |
int number_of_attached_controllers() { int i, num_attached=0; u32 type; //expansion type, not used in this example for(i=0; i<WPAD_MAX_WIIMOTES; i++) { if (WPAD_Probe(i, &type) == WPAD_ERR_NONE) { num_attached++; } } return num_attached; }
Re: Getting the number of attached controlers? August 19, 2008 02:38PM | Registered: 15 years ago Posts: 109 |