WiiMote + Nunchuk fail

Jul 20, 2011 at 8:35 PM
Edited Jul 20, 2011 at 8:51 PM

Hi, i'm trying to connect a nintendo wiimote (no motion+) and a standard nintendo nunchuk with wiimotelib.
I'm using the standard wiimotelib 1.7 in vs express c# 2010.

My code: 

[ Snip ]

 

using WiimoteLib;
using System.Windows.Forms;

namespace WiiControls
{
    class WiiInput
    {
        
        public WiiInput()
        {
            Wiimote wm = new Wiimote();
            wm.Connect();
        }
     }
}
[ /snip ]

 

The script works fine with ONLY the wiimote. I can read the values and IR data perfect. 

But when i connect the Nunchuk the script breaks at wm.connect();. No errors and no messages. The application just exits. 

[Edit: Even the WiimoteTest.exe fails with the Nunchuk connected, but works when disconnected]

Does anyone know how to use the wiimotelib with the wiimote + nunchuk? 

Greetings,

Meint Span
Netherlands

Jul 25, 2011 at 2:19 PM

Ah, code works fine.

The nunchuck was broken :(