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

📄 ui_input_fp.c

📁 ZORAN 962/966 SOURCE CODE,DVD chip
💻 C
字号:
/****************************************************************************************************
*  Copyright (c) 2005 ZORAN Corporation, All Rights Reserved
*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
*  File: ui_input_fp.c
*
* Description:
* =========
* Front Panel lookup table
****************************************************************************************************/
#include "Config.h"		// Global Configuration - do not remove!
#include "include\sysdefs.h"	// Global definition - do not remove!

#ifdef DEBUG_UI_TRACE
#undef IFTRACE
#define IFTRACE if (gTraceUI)
#include "Debug\DbgMain.h"
#endif //DEBUG_UI_TRACE

#ifndef DEBUG_UI_TRACE
#undef dbg_printf(sMsg)
#define dbg_printf(sMsg)
#undef	dbgm_printf(sMsg, mode)
#define dbgm_printf(sMsg, mode)
#endif

/****************************************************************************************************
*	INCLUDE FILES
****************************************************************************************************/
// Include C Standard

// Include project specific
#include "kernel\eventdef.h"
#include "UI_Manager\UI_Input\ui_input_fp.h"
#define FP_KEY_MAP_COUNT 7

STATIC CONST UI_KEY_MAP fp_key_map[FP_KEY_MAP_COUNT]=
{
  {FPKC_SKIPF, UICC_SKIPF},
  {FPKC_SKIPB, UICC_SKIPB},
  {FPKC_EJECT, UICC_EJECT},
  {FPKC_PLAY_PAUSE, UICC_PLAY_PAUSE},
  {FPKC_STOP, UICC_STOP},
  {FPKC_AUDIO, UICC_LR},
  {FPKC_POWER, UICC_POWER},	
};

/****************************************************************************************************
*	DECLARATION: Private (static) functions
****************************************************************************************************/

/****************************************************************************************************
*	DEFINITION: Public functions
****************************************************************************************************/
/**********************************************************************************
 * Name			:
 *
 * Purpose		:
 *
 * Input			:
 *
 * Return Value	:
 *
 * Description		:
 *
 * Comments		:
 *
**********************************************************************************/
UINT16 UI_ConvertFPKeyToUICC( UINT16 wFPKey)
{
	UINT8 cLoop;

	for( cLoop = 0; cLoop < FP_KEY_MAP_COUNT; cLoop++ )
	{
		if ((fp_key_map[cLoop].wInputKeyCode) && ( fp_key_map[cLoop].wInputKeyCode == wFPKey ))
			return fp_key_map[cLoop].wUICommandCode;
	}

	tr_printf(("Error, unknown fp key code\n"));
	return UICC_NULL;
	
}

/**********************************************************************************
 * Name			:
 *
 * Purpose		:
 *
 * Input			:
 *
 * Return Value	:
 *
 * Description		:
 *
 * Comments		:
 *
**********************************************************************************/
BOOL UI_CheckIfFPEjectKey( UINT16 wFPKey)
{
	return (FPKC_EJECT == wFPKey);
}

⌨️ 快捷键说明

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