예제 #1
0
 private void btnMPConnect_Click(object sender, EventArgs e)
 {
     if (mWiimote.WiimoteState.ExtensionType == ExtensionType.MotionPlus)
     {
         mWiimote.DisconnectMotionPlus();
         btnMPConnect.Text = "Connect";
     }
     else
     {
         mWiimote.ConnectMotionPlus();
         btnMPConnect.Text = "Disconnect";
     }
 }