Esempio n. 1
0
 /// Connects COBES to the availabel wii remoetes in memory and set's up the remote interface settings.
 /// </summary>
 /// <param name="i"></param>
 public void Connect(int i)
 {
     mWiimotes[i].Connect();
     mWiimotes[i].SetReportType(InputReport.IRAccel, true); // Set's the type of information the remote will send back. Currently sending Infra red and accelerator data.
     mWiimotes[i].SetLEDs(i + 1);
     aggregators[i]               = new WiimoteSampleAggregator();
     coordinateSet[i]             = new WiimoteCoordinate();
     aggregators[i].Wiimote       = mWiimotes[i];
     aggregators[i].Processed    += SendToWiimoteCoordinate;
     mWiimotes[i].WiimoteChanged += wm_WiimoteChanged;
     // Possibly find a way to set the sensitivity of the wii remote for the LEDs
 }
Esempio n. 2
0
 /// Connects COBES to the availabel wii remoetes in memory and set's up the remote interface settings.
 /// </summary>
 /// <param name="i"></param>
 public void Connect(int i)
 {
     mWiimotes[i].Connect();
     mWiimotes[i].SetReportType(InputReport.IRAccel, true); // Set's the type of information the remote will send back. Currently sending Infra red and accelerator data.    
     mWiimotes[i].SetLEDs(i+1);
     aggregators[i] = new WiimoteSampleAggregator();
     coordinateSet[i] = new WiimoteCoordinate();
     aggregators[i].Wiimote = mWiimotes[i];
     aggregators[i].Processed += SendToWiimoteCoordinate;
     mWiimotes[i].WiimoteChanged += wm_WiimoteChanged;
     // Possibly find a way to set the sensitivity of the wii remote for the LEDs
 }