Educational materials

WiiLab Example Code - WiiLabCOM: Interface

Annotations

The interface is just a standard class interface. It contains a declaration for each public method in the WiimoteCOM class.

Raw Source Code

/// <summary>
/// Interface for the COM class/lib
/// </summary>
public interface WiimoteCOMSignature
{
    int Connect();
    int SetReportType();
    bool Disconnect();
    void DisconnectAll();
    //wiimote functions
    void SetLEDsInt(int leds);
    void SetLEDsBool(bool led1, bool led2, bool led3, bool led4);
    void SetRumble(bool on);
    bool[] GetButtonStatus();
    double[] GetAccelStatus(int round);
    double[] GetIRStatus(int round);
    double GetBatteryStatus();
    //nunchuk functions
    bool[] GetNunchukButtonState();
    double[] GetNunchukAccelState(int round);
    double[] GetNunchukJoystickState();
}

-- JordanBrindza - 02 Jul 2008

r1 - 02 Jul 2008 - 16:18:46 - JordanBrindza
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