src/gui/skydiveorbust/skydiveorbust.c
// Setup Device GUI As Host or Slave
Setup Device GUI As Host or Slave
Setup Device GUI As Host or Slave
void pg_sdobUpdateHostDeviceInfo(gslc_tsGui *pGui) {
  if (sdob_devicehost->isHost == 0) {
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_PLAY], false);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_STOP], false);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_FORWARD], false);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_BACK], false);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_USER_RATE], false);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_SLIDER], false);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_POS], false);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_RATE], false);
  } else {
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_PLAY], true);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_STOP], true);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_FORWARD], true);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_BACK], true);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_USER_RATE], true);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_SLIDER], true);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_POS], true);
    gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_PL_RATE], true);
  }
}
void pg_sdobUpdateHostDeviceInfo ( gslc_tsGui * pGui ) { if ( sdob_devicehost -> isHost == 0 ) { gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_PLAY ] , false ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_STOP ] , false ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_FORWARD ] , false ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_BACK ] , false ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_USER_RATE ] , false ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_SLIDER ] , false ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_POS ] , false ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_RATE ] , false ) ; } else { gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_PLAY ] , true ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_STOP ] , true ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_FORWARD ] , true ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_BACK ] , true ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_USER_RATE ] , true ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_SLIDER ] , true ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_POS ] , true ) ; gslc_ElemSetVisible ( pGui , pg_sdobEl [ E_SDOB_EL_PL_RATE ] , true ) ; } }
Setup Device GUI As Host or Slave
Setup Device GUI As Host or Slave
// gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_BTN_MIRROR], false); // gslc_ElemSetVisible(pGui, pg_sdobEl[E_SDOB_EL_BTN_MIRROR], false);