osd900keycover.c

来自「LCD Monitor 部分源码」· C语言 代码 · 共 124 行

C
124
字号
#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 + =
减小字号Ctrl + -
显示快捷键?