📄 keyproc.c
字号:
/* 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);
}
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();
}
else if ( fgIsPcdPlay() )
{
fgRet = fgPCDPauseKey();
}
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();
}
else if ( fgIsPcdPlay() )
{
fgRet = fgPCDRepeatKey();
}
break;
case IR_RETURN:
if (!fgFlCheckStatus(FL_STATUS_IN_MPEG))
break ;
case IR_RESUME:
fgRet = fgISOResumeKey();
break;
case IR_FF:
if ( fgIsIsoPlay() )
{
fgRet = fgISOFFKey();
}
else if ( fgIsPcdPlay() )
{
fgRet = fgPCDFFKey();
}
break;
case IR_FR:
if ( fgIsIsoPlay() )
{
fgRet = fgISOFRKey();
}
else if ( fgIsPcdPlay() )
{
fgRet = fgPCDFRKey();
}
break;
case IR_SF:
fgRet = fgISOSFKey();
break;
#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:
{
BYTE bDom = bSharedInfo(SI_DVD_DOM) ;
if (fgFlCheckStatus(FL_STATUS_IN_MPEG))
{
#ifdef MENU_TITLE_KEY_RESUME
if (fgIsInDivX6Menu(bDom))
{
vSendUopCmd(UOP_RESUME, 0, 0, 0);
}
else
#endif
if (_bIRKey == IR_TITLE_MENU)
{
vSendUopCmd (UOP_TITLE_MENU, 0, 0, 0) ;
}
else
{
vSendUopCmd (UOP_ROOT_MENU, 0, 0, 0) ;
}
}
break ;
}
/* case IR_ROOT_MENU: */
/* case IR_NEXT_DLIST: */
/* case IR_PREV_DLIST: */
/* case IR_HOME_DLIST: */
case IR_AUDIO:
fgRet = fgISOAudioKey();
break;
case IR_SUB_TITLE:
#ifdef SUPPORT_USB_COPY //yan 070409
if(fgFlCheckStatus(FL_STATUS_IN_MENU) && fgFlMnOnCopyType())
fgRet = fgCOMUSBInputKey();
else
#endif
fgRet = fgISOSpKey();
break;
/* case IR_SUB_TITLE_OFF: */
case IR_ANGLE:
fgRet = fgISOAngleKey();
break;
case IR_DISPLAY:
if ( fgIsIsoPlay() )
{
fgRet = fgISORemainKey();
}
else if ( fgIsPcdPlay() )
{
fgRet = fgPCDDisplayKey();
}
break;
/* case IR_REMAIN: */
case IR_GOTO:
fgRet = fgISOSearchKey();
break;
case IR_MARK:
fgRet = fgISOMarkKey();
break;
/* case IR_CLEAR: */
/* case IR_PBC: */
case IR_DIGEST:
fgRet = fgISODigestKey();
break;
case IR_PROGRAM:
fgRet = fgISOProgramKey();
break;
case IR_RANDOM:
if ( fgIsIsoPlay() )
{
fgRet = fgISORepeatKey();
}
else if ( fgIsPcdPlay() )
{
fgRet = fgPCDShuffleKey();
}
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();
}
else if ( fgIsPcdPlay() )
{
fgRet = fgPCDZoomInKey();
}
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: */
case IR_SETUP:
break;
default:
vOsdShowError(SV_ERR_DISC_NOT_SUPPORT, OSD_TIMEOUT_SHORT);
fgRet = UOP_OK;
break;
}
return (fgRet);
}
// *********************************************************************
// 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;
case IR_SF:
fgRet = fgNonISOSFKey();
break;
case IR_SR:
fgRet = fgNonISOSRKey();
break;
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
case IR_MARK:
fgRet = fgNonISOMarkKey();
break;
/* case IR_CLEAR: */
case IR_PBC:
fgRet = fgNonISOPbcKey();
break;
case IR_DIGEST:
fgRet = fgNonISODigestKey();
break;
case IR_PROGRAM:
fgRet = fgNonISOProgramKey();
break;
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;
case IR_ZOOM_OUT:
fgRet = fgNonISOZoomOutKey();
break;
#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);
}
// *********************************************************************
// Screen saver key dispatch function
// *********************************************************************
BOOL fgSCRSAVKeyProc(void ) large
{
BYTE bScrSaverSwitch;
if ((_bIRKey < IR_INTERNAL_KEY_START)
#ifdef SUPPORT_DEVMNG
|| (_bIRKey == IR_ESCAPE_SCRSAV)
#endif
)
{
/* if we turned on the screen saver */
bScrSaverSwitch = bEepromReadByte(SCR_SAVER_POSITION);
if (bScrSaverSwitch == EV_ON)
{
vScrSaveExit();
}
/* enter power active mode */
vSendPlayerActive();
vScrSaverSetTimeOut(SCR_SAVER_TIMEOUT);
#ifdef SUPPORT_DEVMNG
if(_bIRKey == IR_ESCAPE_SCRSAV)
{
if (fgIsIsoPlay())
{
vISOExit();
}
}
else
#endif
if (fgIsHiPriorityKey(_bIRKey) || (bScrSaverSwitch != EV_ON))
{
/* we need to process the first key */
fgSetPlayPostKey(_bIRKey);
}
_bIRKey = IR_NONE;
#ifdef SUPPORT_DEVMNG
if(bSharedInfo(SI_SCR_SAVE_EMD_ESC)== TRUE) // show switch menu
{
_bIRKey = IR_MUTE;
vSetSharedInfo(SI_SCR_SAVE_EMD_ESC,FALSE);
}
#endif
return UOP_OK;
}
else /* don't care internal key */
{
return UOP_OK;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -