⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 keyproc.c

📁 MTK 1389E SOURCE CODE
💻 C
📖 第 1 页 / 共 3 页
字号:
  #ifdef NO_DISC_STOP_CLEAR
      case IR_STOP:
        fgRet = bInitStopKey();
        break;
  #endif
  
  /*  case IR_NEXT: */
  /*  case IR_PREV: */
  /*  case IR_REPEAT: */
  /*  case IR_FF: */
  /*  case IR_FR: */
  /*  case IR_SF: */
  /*  case IR_SR: */
  /*  case IR_STEPF: */
  /*  case IR_STEPR: */
  /*  case IR_REVERSE: */
  /*  case IR_SET_A: */
  /*  case IR_SET_B: */
  /*  case IR_TITLE_MENU: */
  /*  case IR_ROOT_MENU: */
  /*  case IR_RETURN: */
  /*  case IR_NEXT_DLIST: */
  /*  case IR_PREV_DLIST: */
  /*  case IR_HOME_DLIST: */
  /*  case IR_AUDIO: */
  /*  case IR_SUB_TITLE: */
  /*  case IR_SUB_TITLE_OFF: */
  /*  case IR_ANGLE: */
  /*  case IR_DISPLAY: */
  /*  case IR_RESUME: */
  /*  case IR_GOTO: */
  /*  case IR_MARK: */
  /*  case IR_CLEAR: */
  /*  case IR_PBC: */
  /*  case IR_DIGEST: */
  /*  case IR_PROGRAM: */
  /*  case IR_RANDOM: */
  /*  case IR_VRMT: */
  /*  case IR_MEMORY: */
  /*  case IR_PLAY_MODE: */
  
  /*  case IR_PAL_NTSC: */
  
  /*  case IR_TV_MODE: */  /* handled in play_dvd.c */
  
  /*  case IR_COMPONENT: */
  /*  case IR_PSCAN:   */
  /*  case IR_VGA:  */
  /*  case IR_ZOOM_IN: */
  /*  case IR_ZOOM_OUT: */
  /*  case IR_ZOOM_USER: */
  /*  case IR_CAPTURE: */
  /*  case IR_AUD_KEY_PLUS: */
  /*  case IR_AUD_KEY_MINUS: */
  /*  case IR_AUD_KEY_RESUME: */
  /*  case IR_ECHO_PLUS: */
  /*  case IR_ECHO_MINUS: */
  /*  case IR_SURROUND: */
  /*  case IR_VOCAL_ASSIST: */
  /*  case IR_KARAOKE: */
  /*  case IR_ECHO_TYPE: */
  /*  case IR_EQUALIZER: */
  /*  case IR_VOICE_CANCEL: */
  /*  case IR_SPK_CFG:  */
  /*  case IR_SPDIF: */
  /*  case IR_MUTE:  */
  /*  case IR_VOLUME_UP: */
  /*  case IR_VOLUME_DOWN: */
  /*  case IR_AUD_LR: */
  /*  case IR_SETUP:  */
  /*  case IR_PLAY_TYPE: */
  /*  case IR_OSD_LANGUAGE: */
  /*  case IR_DEFAULT: */
  /*  case IR_GAME:  */
  /*  case IR_FUNCTION: */
  /*  case IR_VFD_DARK: */
  /*  case IR_VFD_BRIGHT: */
  /*  case IR_VFD_MODE: */
  /*  case IR_POWER: */
  /*  case IR_EJECT: */
  /*  case IR_PLAY_PAUSE: */
  /*  case IR_PAUSE_STEP: */
  /*  case IR_STOP_RESUME: */
  /*  case IR_PLAY_ENTER: */
  /*  case IR_MENU_PBC: */
  /*  case IR_TITLE_PBC: */
  /*  case IR_CMD_DONE: */
  /*  case IR_TIME_OUT: */
  /*  case IR_DONE: */
  
      case IR_PASSWORD:
        fgRet = bInitPasswordKey();
        break;
        
  /* case IR_HDN_PASSWORD:  */
  
      case IR_UPG:
        fgRet = bInitUpgradeKey();
        break;
  
  /*  case IR_SELECT_DONE: */
      default:
         fgRet = UOP_OK;
         break;
    }
  }
  return (fgRet);
}
// *********************************************************************
// ISO(data disc, picture cd) key dispatch function
// *********************************************************************
BOOL fgISOKeyProc(void) large
{
  BOOL fgRet = UOP_OK;
  
  if (fgFsMenuState())
  {
    return (UOP_OK);
  }
  
  if ( _bIRKey >= IR_KEY_MAX )
  {
    return (UOP_OK);
  }   
  
//#ifndef CDDA_USE_CDFS  
  switch (_bIRKey)
  {
    case IR_NUM0:
    case IR_NUM1:
    case IR_NUM2:
    case IR_NUM3:
    case IR_NUM4:
    case IR_NUM5:
    case IR_NUM6:
    case IR_NUM7:
    case IR_NUM8:
    case IR_NUM9:
#ifndef NO_ADD10_KEY
    case IR_ADD10:
#endif
// megaa ADD5 begin
#ifndef NO_ADD5_KEY
    case IR_ADD5:
#endif
// megaa ADD5 end
      fgRet = fgISONumKey();
      break;

/*  case IR_ADD20: */
/*  case IR_ADD5: */

    case IR_UP:
    case IR_LEFT:
    case IR_RIGHT:
    case IR_DOWN:
   // case IR_ENTER:
      fgRet = fgISODirKey();
      break;

    case IR_PLAY:
      fgRet = fgISOPlayKey();
      break;

    case IR_PAUSE:
      if ( fgIsIsoPlay() )
      {
        fgRet = fgISOPauseKey();
      }
#ifdef SUPPORT_PCD
      else if ( fgIsPcdPlay() )
      {
        fgRet = fgPCDPauseKey();
      }
#endif
      break;

    case IR_STOP:
      fgRet = fgISOStopKey();
      break;

    case IR_NEXT:
      fgRet = fgISONextKey();
      break;

    case IR_PREV:
      fgRet = fgISOPrevKey();
      break;

    case IR_REPEAT:
      if ( fgIsIsoPlay() )
      {
        fgRet = fgISORepeatKey();
      }
#ifdef SUPPORT_PCD
      else if ( fgIsPcdPlay() )
      {
        fgRet = fgPCDRepeatKey();
      }    
#endif
      break;

    case IR_RESUME:
      fgRet = fgISOResumeKey();
      break;

    case IR_FF:
      if ( fgIsIsoPlay() )
      {
        fgRet = fgISOFFKey();
      }
#ifdef SUPPORT_PCD
      else if ( fgIsPcdPlay() )
      {
        fgRet = fgPCDFFKey();
      }
#endif
      break;

    case IR_FR:
      if ( fgIsIsoPlay() )
      {
        fgRet = fgISOFRKey();
      }
#ifdef SUPPORT_PCD
      else if ( fgIsPcdPlay() )
      {
        fgRet = fgPCDFRKey();
      }
#endif
      break;

#ifndef DISABLE_SF
    case IR_SF:
      fgRet = fgISOSFKey();
      break;
#endif      


#ifdef PLAYER_VRMT
    case IR_VRMT:
#endif  
/*  case IR_SR: */
    case IR_STEPF:
      fgRet = fgISOStepFKey();
      break;

    case IR_STEPR:
      fgRet = fgISOStepRKey();
      break;
    
/*  case IR_REVERSE: */

    case IR_SET_A:
      fgRet = fgISOA2BKey();
      break;

/*  case IR_SET_B: */
/*  case IR_TITLE_MENU: */
/*  case IR_ROOT_MENU: */
/*  case IR_RETURN: */
/*  case IR_NEXT_DLIST: */
/*  case IR_PREV_DLIST: */
/*  case IR_HOME_DLIST: */
    case IR_AUDIO:
      fgRet = fgISOAudioKey();
      break;

#ifdef MPEG4_TXT_SP
    case IR_SUB_TITLE:
      fgRet = fgISOSpKey();
      break;
#endif

/*  case IR_SUB_TITLE_OFF: */
    case IR_ANGLE:
      fgRet = fgISOAngleKey();
      break;

    case IR_DISPLAY:
      if ( fgIsIsoPlay() )
      {
        fgRet = fgISORemainKey();
      }
#ifdef SUPPORT_PCD
      else if ( fgIsPcdPlay() )
      {
        fgRet = fgPCDDisplayKey();
      }    
#endif
      break;

/* case IR_REMAIN: */

    case IR_GOTO:
      fgRet = fgISOSearchKey();
      break;

    case IR_MARK:
      fgRet = fgISOMarkKey();
      break;

/*  case IR_CLEAR: */
/*  case IR_PBC: */
      
#ifdef PLAYER_DIGEST      
    case IR_DIGEST:
      fgRet = fgISODigestKey();
      break;
#endif      

    case IR_PROGRAM:
      fgRet = fgISOProgramKey();
      break;

    case IR_RANDOM:
#if(!defined DDISC_PB_SHUFFLE_ENABLED && !defined DDISC_PB_RANDOM_ENABLED)
      fgRet = TRUE;
#else
       if ( fgIsIsoPlay() )
       {
         fgRet = fgISORepeatKey();
       }
#ifdef SUPPORT_PCD
       else if ( fgIsPcdPlay() )
       {
         fgRet = fgPCDShuffleKey();
       }   
#endif
#endif
       break;

/*  case IR_INTRO: */
/*  case IR_MEMORY: */
/*  case IR_PLAY_MODE: */
/*  case IR_PAL_NTSC: */
/*  case IR_TV_MODE: */
/*  case IR_COMPONENT: */
/*  case IR_PSCAN: */
/*  case IR_VGA: */
    case IR_ZOOM_IN:
      if ( fgIsIsoPlay() )
      {
        fgRet = fgISOZoomInKey();
      }
#ifdef SUPPORT_PCD
      else if ( fgIsPcdPlay() )
      {
        fgRet = fgPCDZoomInKey();
      }    
#endif
      break;

    case IR_ZOOM_OUT:
      fgRet = fgISOZoomOutKey();
      break;

#ifdef ENABLE_ZOOM_USER_MODE
    case IR_ZOOM_USER:
      fgRet = fgISOZoomUsrKey();
      break;
#endif /* ENABLE_ZOOM_USER_MODE */

/*  case IR_AUD_KEY_PLUS: */
/*  case IR_AUD_KEY_MINUS: */
/*  case IR_AUD_KEY_RESUME: */
/*  case IR_ECHO_PLUS: */
/*  case IR_ECHO_MINUS: */
/*  case IR_SURROUND: */
/*  case IR_VOCAL_ASSIST: */
/*  case IR_KARAOKE: */
/*  case IR_ECHO_TYPE: */
/*  case IR_EQUALIZER: */
/*  case IR_VOICE_CANCEL: */
/*  case IR_SPK_BALANCE: */
/*  case IR_SPDIF: */
/*  case IR_MUTE: */
/*  case IR_VOLUME_UP: */
/*  case IR_VOLUME_DOWN: */
/*  case IR_AUD_LR: */

    default:
       vOsdShowError(SV_ERR_DISC_NOT_SUPPORT, OSD_TIMEOUT_SHORT);
       fgRet = UOP_OK;
       break;
  }  
  return (fgRet);
//#endif /* CDDA_USE_CDFS */  
}  

// *********************************************************************
// NonISO(DVD,VCD,CDDA,AUDIO_IN) key dispatch function
// *********************************************************************
BOOL fgNonISOKeyProc(void) large
{
  BOOL fgRet = UOP_OK;
  
  switch (_bIRKey)
  {
    case IR_NUM0:
    case IR_NUM1:
    case IR_NUM2:
    case IR_NUM3:
    case IR_NUM4:
    case IR_NUM5:
    case IR_NUM6:
    case IR_NUM7:
    case IR_NUM8:
    case IR_NUM9:
#ifndef NO_ADD10_KEY
    case IR_ADD10:
#endif
// megaa ADD5 begin
#ifndef NO_ADD5_KEY
    case IR_ADD5:
#endif
// megaa ADD5 end
      fgRet = fgNonISONumKey();
      break;

/*  case IR_ADD20: */
/*  case IR_ADD5: */

    case IR_UP:
    case IR_LEFT:
    case IR_RIGHT:
    case IR_DOWN:
      fgRet = fgNonISODirKey();
      break;

    case IR_ENTER:
      fgRet = fgNonISOEnterKey();
      break;

    case IR_PLAY:
      fgRet = fgNonISOPlayKey();
      break;

    case IR_PAUSE:
      fgRet = fgNonISOPauseKey();
      break;

    case IR_STOP:
      fgRet = fgNonISOStopKey();
      break;

    case IR_NEXT:
      fgRet = fgNonISONextKey();
      break;

    case IR_PREV:
      fgRet = fgNonISOPrevKey();
      break;

    case IR_REPEAT:
      fgRet = fgNonISORepeatKey();
      break;

    case IR_RESUME:
      fgRet = fgNonISOResumeKey();
      break;

    case IR_FF:
      fgRet = fgNonISOFFKey();
      break;

    case IR_FR:
      fgRet = fgNonISOFRKey();
      break;

#ifndef DISABLE_SF
    case IR_SF:
      fgRet = fgNonISOSFKey();
      break;
#endif      

#ifndef DISABLE_SR
    case IR_SR:
      fgRet = fgNonISOSRKey();
      break;
#endif      

    case IR_STEPF:
      fgRet = fgNonISOStepFKey();
      break;

    case IR_STEPR:
      fgRet = fgNonISOStepRKey();
      break;

/* case IR_REVERSE: */

    case IR_SET_A:
      fgRet = fgNonISOA2BKey();
      break;

/* case IR_SET_B: */

    case IR_TITLE_MENU:
      fgRet = fgNonISOTitleKey();
      break;

    case IR_ROOT_MENU:
      fgRet = fgNonISOMenuKey();
      break;

    case IR_RETURN:
      fgRet = fgNonISOReturnKey();
      break;

#ifdef SUPPORT_DVD_AUDIO
    case IR_NEXT_DLIST:
      fgRet = fgNonISODANextDlist();
      break;

    case IR_PREV_DLIST:
      fgRet = fgNonISODAPrevDlist();
      break;

/*  case IR_HOME_DLIST: */
#endif /* SUPPORT_DVD_AUDIO */

    case IR_AUDIO:
      fgRet = fgNonISOAudioKey();
      break;

    case IR_SUB_TITLE:
      fgRet = fgNonISOSpKey();
      break;

/* case IR_SUB_TITLE_OFF: */

    case IR_ANGLE:
      fgRet = fgNonISOAngleKey();
      break;

    case IR_DISPLAY:
      fgRet = fgNonISODisplayKey();
      break;

/* case IR_REMAIN: */

    case IR_GOTO:
#ifdef GOTO_SEPARATE_KEY
      fgRet = fgNonISOSearchKey(FALSE);  // enter original search interface
      break;
    case GOTO_SEPARATE_KEY:         // separate key for entering Goto
      fgRet = fgNonISOSearchKey(TRUE);
      break;
#else
      fgRet = fgNonISOSearchKey(TRUE);   // enter combined original search and new Goto
      break;
#endif

#ifdef PLAYER_BOOKMARK
    case IR_MARK:
      fgRet = fgNonISOMarkKey();
      break;
#endif      

/* case IR_CLEAR: */
    case IR_PBC: 
      fgRet = fgNonISOPbcKey();
      break;

#ifdef PLAYER_DIGEST
    case IR_DIGEST:
      fgRet = fgNonISODigestKey();
      break;
#endif      

#ifdef PLAYER_PROGRAM
    case IR_PROGRAM:
      fgRet = fgNonISOProgramKey();
      break;
#endif

    case IR_RANDOM:
       fgRet = fgNonISOShuffleKey();
       break;

 #ifdef PLAYER_VRMT
    case IR_VRMT:
       fgRet = fgNonISOVremoteKey();
       break;
 #endif /* PLAYER_VRMT */

#ifdef MEMORY_SUPPORT
    case IR_MEMORY:
      fgRet = fgNonISOMemoryKey();
      break;
#endif /* MEMORY_SUPPORT */

/* case IR_PLAY_MODE: */
/* case IR_PAL_NTSC: */
    case IR_TV_MODE:
      fgRet = fgNonISOTvModeKey();
      break;

/* case IR_COMPONENT: */
/* case IR_PSCAN: */
/* case IR_VGA: */
    case IR_ZOOM_IN:
      fgRet = fgNonISOZoomInKey();
      break;

#ifndef DISABLE_ZOOM_OUT
    case IR_ZOOM_OUT:
      fgRet = fgNonISOZoomOutKey();
      break;
#endif      

#ifdef ENABLE_ZOOM_USER_MODE
    case IR_ZOOM_USER:
      fgRet = fgNonISOZoomUsrKey();
      break;
#endif /* ENABLE_ZOOM_USER_MODE */

#ifdef SUPPORT_DVD_AUDIO
   case IR_AUD_KEY_PLUS: 
     fgSetPlayPostKey(IR_NEXT_DLIST);
     break;
   case IR_AUD_KEY_MINUS: 
     fgSetPlayPostKey(IR_PREV_DLIST);
     break;
#endif   
/* case IR_AUD_KEY_RESUME: */
/* case IR_ECHO_PLUS: */
/* case IR_ECHO_MINUS: */
/* case IR_SURROUND: */
/* case IR_VOCAL_ASSIST: */
/* case IR_KARAOKE: */
/* case IR_ECHO_TYPE: */
/* case IR_EQUALIZER: */
/* case IR_VOICE_CANCEL: */
/* case IR_SPK_BALANCE: */
/* case IR_SPDIF: */
/* case IR_MUTE: */
/* case IR_VOLUME_UP: */
/* case IR_VOLUME_DOWN: */
/* case IR_AUD_LR: */
 case IR_FUNCTION: 
    fgRet = fgNonFunctionKey();
    break;
    
 case IR_PASSWORD: 
    fgRet = fgNonISOPasswordKey();
    break;

#ifdef SUPPORT_DVD_AUDIO
    case IR_HDN_PASSWORD:
      fgRet = fgNonISODAHdnPasswordKey();
      break;
#endif

    default:
       vOsdShowError(SV_ERR_DISC_NOT_SUPPORT, OSD_TIMEOUT_SHORT);
       fgRet = UOP_OK;
       break;
  }  
  return (fgRet);
}  

#ifndef SHRINK_KEYPROC
// *********************************************************************
// Screen saver key dispatch function
// *********************************************************************
BOOL fgSCRSAVKeyProc(void ) large
{
  BYTE bScrSaverSwitch;
  //DBGLogB(_bIRKey,7,7,7);
  //DBGLogS("SCR STATE\n");
  
  if (_bIRKey < IR_INTERNAL_KEY_START)
  {
    /* if we turned on the screen saver */
    bScrSaverSwitch = bEepromReadByte(SCR_SAVER_POSITION);
    if (bScrSaverSwitch == EV_ON)
    {
      vBmpScrSaveExit();
    }
    /* enter power active mode */
    vSendPlayerActive();
    vScrSaverSetTimeOut(SCR_SAVER_TIMEOUT);
    //DBGLogS("Scrs EXIT\n");

    if (fgIsHiPriorityKey(_bIRKey) || (bScrSaverSwitch != EV_ON))
    {
      /* we need to process the first key */
      fgSetPlayPostKey(_bIRKey);
    }
    _bIRKey = IR_NONE;
    return UOP_OK;
  }
  else /* don't care internal key */
  {
    return UOP_OK;
  }
}  
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -