WiiLab Example Code - WiiLabCOM: Constructor
Annotations
The constructor creates a new Wiimote object that is tied to that instance of the WiimoteCOM class.
The private and static variables of the WiimoteCOM are also displayed below. The static variables, WiimoteCollection and connectedWiimotes, keep track of, respectively, all Wiimotes paired with the computer and the Wiimotes that are currently connected. Together they are used to allow multiple Wiimotes to connect simultaneously.
Raw Source Code
//Private and Static variables
private static WiimoteCollection wc;
private static List<Guid> connectedWiimotes = new List<Guid>();
private Wiimote wm;
/// <summary>
/// Default Constructor
/// </summary>
public WiimoteMatlabCOMClass()
{
wm = new Wiimote();
}
--
JordanBrindza - 02 Jul 2008