Mike,
Thank you that worked perfectly.
One more related question...
Suppose I wanted to modify the Wiimote demo to support using two or more wiimotes at one time.
Would I need to do...
a) create multiple objects of type CwclWiimote, one per user.
b) Would each instance of CwclWiimote need to load the CWL API?
c) Call the following for each user, but change the value of playerNum to be 0, 1, 2, etc?
Adapted from wii demo method - void CWiimoteDemoDlg::OnBnClickedButtonConnect()
if (!wclShowError(m_Wiimote.EnumHID(Wiis)))
if (Wiis.GetCount() > 0)
{
m_Wiimote.SetTransport(wtHID);
m_Wiimote.GetHIDParams()->SetDevicePath(Wiis.GetItems(playerNum));
wclShowError(m_Wiimote.Connect());
}
thanks