📄 vusif.c
字号:
/*
* vusif.c Ver 0.0
*
* (c) Copyright ChangHong NetWork Co. Ltd, MianYang PRC, 2004.8.23
*
* Source file name : vusif.c
* Author : Robert ChengZhiJun ( czj_robert@sohu.com )
*
* Original Work : none
*
* Introduction :
* This file is to encapsulate the main MENU function!
*
* =======================
* IMPROVEMENTS THOUGHT OF
* =======================
*
* =====================
* MODIFICATION HISTORY
* =====================
*
* Date Initials Modification
* ---- -------- ------------
*
*
*/
/*{{{ enums & constants*/
#define INDEFINITE_WAIT 0
/*
* czj040823 add this just for TURBO C
*/
#define TURBO_C
/*}}}*/
/*
* For the main MENU
*/
/*
* draw the main MENU
*/
static void DVBUsifProcess ( )
{
int iKeyScanCode;
int tclkWaitDuration = INDEFINITE_WAIT;
/*
* czj040823 add this just for TURBO C
*/
#ifdef TURBO_C
int Handle8bpp;
#endif
while ( 1 )
{
iKeyScanCode = ReadKey ( CURSOR_OFF, tclkWaitDuration );
/*
* czj040823 add this just for TURBO C
*/
#ifdef TURBO_C
{
#define ESC 1
if ( ESC == iKeyScanCode )
break;
}
#endif
switch ( iKeyScanCode )
{
#if 0
case MENU_KEY:
case MENU_CUM_EXIT_KEY:
break;
case EPG_KEY:
break;
case PROGRAM_PREV_KEY:
case PROG_PREV_CUM_DOWN_ARROW_KEY:
break;
case PROGRAM_NEXT_KEY:
case PROG_NEXT_CUM_UP_ARROW_KEY:
break;
case VOLUME_NEXT_KEY:
case VOL_UP_CUM_RIGHT_ARROW_KEY:
break;
case VOLUME_PREV_KEY:
case VOL_DOWN_CUM_LEFT_ARROW_KEY:
break;
case MUTE_KEY:
break;
#endif
case I_FRAME_KEY:
/*
* czj040823 set the background color into BLUE, just as the I frame picture!
* the screen just in (640 * 480) mode ( NTSC )!
*/
#ifdef TURBO_C
#if 1
{
HL_STOSD_DrawFilledRectangle (
Handle8bpp,
0, 0,
640, 480,
BLUE
);
}
#endif
#endif
break;
#if 0
case INFO_KEY:
break;
case PRF_NEXT_KEY:
break;
case AUDIO_KEY:
break;
case ERASE_KEY:
break;
case POWER_KEY:
case POWER_CUM_SELECT_KEY:
break;
default:
break;
#endif
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -