コード例 #1
0
 private void buttonCalibrate_Click(object sender, RoutedEventArgs e)
 {
     if (m_WiiMoteWrapper.Connected)
     {
         m_Calibrator.CalibrateScreen(m_WiiMoteWrapper);
     }
     else
     {
         m_WiiMoteWrapper.ConnectionStateChangeEvent += onConnectionStateChange;
         m_WiiMoteWrapper.ConnectToWiimote();
         m_WiiMoteWrapper.ConnectionEstablishedEvent += onConnectionSuccessfull;
     }
 }