예제 #1
0
 public void connectToHeadSet() {
   if (m_AppSettings.isUsingHeadSet() && m_HeadSet != null) {
     m_HeadSet.connect();
     Logs.info(APP_MANAGER, "Try to connect to MindWave");
   }
   // mocker
   else {
     m_HeadSet.connect();
   }
 }
예제 #2
0
  public void configureAndConnectHeadSet() {
    EHeadSetType type = getAppSettings().getHeadSetType();
    if (m_AppSettings.isUsingHeadSet() && m_HeadSet == null) {
      switch (type) {
        case MindWave:
          m_HeadSet = new MindWave();
          Logs.info(APP_MANAGER, "Connected to: MINDWAVE :)");
          break;
        case Moker:
          Logs.info(APP_MANAGER, "Connected to: MOCKER");
          m_HeadSet = new MockerHeadSet();
          break;
      }
    }

    connectToHeadSet();
  }