public static Wiimotes getWiimotesObject() { if (mWiimotesSingleton == null) { mWiimotesSingleton = new Wiimotes(); } return(mWiimotesSingleton); }
public WiimoteRecordingHandler(Wiimotes p_Wiimotes, Form1 form) { m_parent = form; m_RecordReference = false; m_RecordPlay = false; m_Wiimotes = p_Wiimotes; this.m_parent.wiimoteConnectionProgress.Maximum = Configuration.getConfiguration().MaxWiimoteConnectionTries; m_Wiimotes.RecordingBeatEvent += new Wiimotes.OnRecordingBeatEvent(OnRecordingBeatEvent); m_Wiimotes.RecordingStartedEvent += new Wiimotes.OnRecordingStartedEvent(OnRecordingStartedEvent); m_Wiimotes.RecordingCompletedEvent += new Wiimotes.OnRecordingCompletedEvent(OnRecordingCompletedEvent); m_Wiimotes.WiimoteUpdateEvent += new Wiimotes.OnWiimoteUpdateEvent(OnWiimoteUpdateEvent); }
public void Initialize(Wiimotes wiimotesObj) { sSendMessages = true; if (TransportType == TransportType.Tcp) { sOscClient = new OscClient(Destination.Address, Destination.Port); sOscClient.Connect(); } _sourceEndPoint = new IPEndPoint(IPAddress.Loopback, Port); wiimotesObj.RecordingStartedEvent += new Wiimotes.OnRecordingStartedEvent(OnRecordingStartedEvent); wiimotesObj.RecordingCompletedEvent += new Wiimotes.OnRecordingCompletedEvent(OnRecordingCompletedEvent); Thread serverThread = new Thread(RunWorker); serverThread.Start(); }
public DataAdaptor(Wiimotes pParent) { mParent = pParent; mMotionRecognition = new MotionRecognitionMain(); }
public WiimoteDataAdaptor(Wiimotes pParent) : base(pParent) { }
public static Wiimotes getWiimotesObject() { if (mWiimotesSingleton == null) mWiimotesSingleton = new Wiimotes(); return mWiimotesSingleton; }
public WiimoteCalibrationHandler(Wiimotes p_Wiimotes,Form1 p_Form) { m_Status = CalibrationStatus.CalibrationNotStarted; m_Wiimotes = p_Wiimotes; m_parent = p_Form; m_CalibrationRecord = m_Wiimotes.getCalibrationRecord(); m_Wiimotes.RecordingCompletedEvent += new Wiimotes.OnRecordingCompletedEvent(OnRecordingCompletedEvent); m_Wiimotes.RecordingInterruptedEvent += new Wiimotes.OnRecordingInterruptedEvent(OnRecordingInterruptedEvent); calibrationRecordingSync = new object(); }
public static WiimoteRecordingHandler getWiimoteRecordingHandler(Wiimotes p_Wiimotes,Form1 form) { if (m_WiimoteRecordingHandler == null) m_WiimoteRecordingHandler = new WiimoteRecordingHandler(p_Wiimotes,form); return m_WiimoteRecordingHandler; }
public void setWiimotesObject(Wiimotes pWiimotes) { mWiimotes = pWiimotes; mWiimotes.WiimoteDisconnectedEvent += new Wiimotes.OnWiimoteDisconnectedEvent(OnWiimoteDisconnectedEvent); // mWiimotes.WiimoteActionEvent += new Wiimotes.OnWiimoteActionEvent(OnWiimoteActionEvent); }
private void initializeTraining(Wiimotes pWiimotes) { try { if (Configuration.getConfiguration().TrainingMode) InitializeTrainingVideoLayout(); mTrainingHandler = new TrainingHandler(trainingVideoPanel1); mTrainingHandler.Initialize(); mTrainingHandler.LoadTraining(); trainingVideoPanel1.setWiimotesObject(pWiimotes); } catch (VideoPanelControl.TrainingVideoException ex) { MessageBox.Show(ex.Message, "Training Issue", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void setWiimotesObject(Wiimotes pWiimotes) { mTrainingVideoRunner.setWiimotesObject(pWiimotes); }
public void setWiimotesObject(Wiimotes pWiimotes) { mWiimotes = pWiimotes; mWiimotes.WiimoteDisconnectedEvent += new Wiimotes.OnWiimoteDisconnectedEvent(OnWiimoteDisconnectedEvent); mSpeechRecognition = SpeechRecognition.getSpeechRecognition(); mSpeechRecognition.VoiceCommandReceivedEvent += new SpeechRecognition.OnVoiceCommandReceivedEvent(OnVoiceCommandReceivedEvent); mSpeechRecognition.startEngine(); }
public void SetWiimotes(Wiimotes wiimotes) { _wiimotes = wiimotes; _wiimotes.RecordingDataReceivedEvent += new Wiimotes.OnRecordingDataReceivedEvent(OnRecordingDataReceivedEvent); }