📄 osd900keycover.c
字号:
#define __OSD900KEYCOVER___
#include "Header\Include.h"
#if(_OSD_TYPE == _OSD900)
//------------------------------------------------------------
void KeyMsgToOsdMsg(void)
{
switch(ucKeyMessage)
{
case _MENU_KEY_MESSAGE:
ucKeyMessage = VK_ENTER;
break;
case _LEFT_RIGHT_KEY_MESSAGE:
if(ucOsdState == _MENU_NONE)
{
EnterFactoryMenu();
}
break;
case _RIGHT_KEY_MESSAGE:
ucKeyMessage = VK_RIGHT;
break;
case _LEFT_KEY_MESSAGE:
ucKeyMessage = VK_LEFT;
break;
case _EXIT_KEY_MESSAGE:
EnterKeyProc();
break;
case _ENTER_KEY_MESSAGE:
ucKeyMessage = VK_MENU_OUT;
break;
// case _ENTER_KEY_MESSAGE:
// EnterKeyProc();
// break;
// case _UP_KEY_MESSAGE:
// UpKeyProc();
// break;
// case _DOWN_KEY_MESSAGE:
// DownKeyProc();
// break;
// case _AUTO_KEY_MESSAGE:
// AutoKeyProc();
// break;
default:
ucKeyMessage = VK_NONE;
break;
}
}
//------------------------------------------------------------
void EnterKeyProc(void)
{
#if(_TMDS_SUPPORT)
if(ucOsdState == _MENU_NONE)
{
ucKeyMessage = VK_NONE;
ucOsdEventMsg = OE_DO_CHANGE_SOURCE;
}
else
{
ucKeyMessage = VK_MENU_OUT;
}
#else
if(ucOsdState == _MENU_NONE)
{
if(ucCurrState == _ACTIVE_STATE)
DoAuto();
}
else
{
ucKeyMessage = VK_MENU_OUT;
}
#endif
}
//------------------------------------------------------------
/*
void UpKeyProc(void)
{
if(stSystemData.InputSource == _SOURCE_VIDEO8_TV)
{
if(ucOsdState == _MENU_NONE)
{
ucKeyMessage = VK_NONE;
ucOsdEventMsg = OE_CH_INC;
return;
}
}
ucKeyMessage = VK_NONE;
}
//------------------------------------------------------------
void DownKeyProc(void)
{
if(stSystemData.InputSource == _SOURCE_VIDEO8_TV)
{
if(ucOsdState == _MENU_NONE)
{
ucKeyMessage = VK_NONE;
ucOsdEventMsg = OE_CH_DEC;
return;
}
}
ucKeyMessage = VK_NONE;
}
//------------------------------------------------------------
void ExitKeyProc(void)
{
ucKeyMessage = VK_NONE;
}
//------------------------------------------------------------
void AutoKeyProc(void)
{
if(stSystemData.InputSource == _SOURCE_VGA)
{
ucKeyMessage = VK_NONE;
ucOsdEventMsg = OE_DO_AUTO;
return;
}
ucKeyMessage = VK_NONE;
}
//------------------------------------------------------------
*/
#endif //#if(_OSD_TYPE == _OSD900)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -