Educational materials

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

r2 - 07 Jul 2008 - 17:31:13 - JessicaSzweda
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Syndicate this site RSSATOM