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

📄 win_root.c

📁 EMU_FTAbox_ref441328_code_source ali m3327
💻 C
字号:
/****************************************************************************
*
*  ALi (Shanghai) Corporation, All Rights Reserved. 2003 Copyright (C)
*
*  File: win_com_popup.c
*
*  Description: all popup window, include three type now
*              
*  History:
*      Date        	Author         	Version		   	Comment
*      ====        	======         	=======   	=======
*  	1.unknown
*	2. 		  	Sunny Yin     		0.1.000   		Initial for M3327 TC
*
****************************************************************************/
#include <api/libc/printf.h>
#include "vkey.h"
#include "win_root.h"
#include "ap_change_channel.h"
#include "ap_hint.h"

struct root_ap_handle_t  root_ap_handle[] = 
{
	{CTL_MSG_TYPE_KEY,	V_AP_KEY_UP,		&ap_chgch_hdl},
	{CTL_MSG_TYPE_KEY,	V_AP_KEY_DOWN,	&ap_chgch_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_RECALL,		&ap_chgch_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_TVRADIO,	&ap_chgch_hdl},
#ifdef	FAV_UPDOWN_SUPPORT
	{CTL_MSG_TYPE_KEY,	V_KEY_FAV_UP,		&ap_chgch_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_FAV_DOWN,		&ap_chgch_hdl},
#endif
	{CTL_MSG_TYPE_KEY,	V_AP_KEY_OK,		&ap_channel_list_hdl},
	{CTL_MSG_TYPE_KEY,	V_AP_KEY_MENU,		&ap_menu_hdl},	
	{CTL_MSG_TYPE_STATUS,	CTRL_MSG_SUBTYPE_STATUS_WEAK_SIGNAL,&ap_hint_hdl},
	{CTL_MSG_TYPE_STATUS,	CTRL_MSG_SUBTYPE_STATUS_NO_SIGNAL,&ap_hint_hdl},
	{CTL_MSG_TYPE_STATUS,	CTRL_MSG_SUBTYPE_STATUS_NORMAL,&ap_hint_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_1,	&ap_numplay_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_2,	&ap_numplay_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_3,	&ap_numplay_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_4,	&ap_numplay_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_5,	&ap_numplay_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_6,	&ap_numplay_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_7,	&ap_numplay_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_8,	&ap_numplay_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_9,	&ap_numplay_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_EPG,	&ap_epg_mm_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_LEFT, &ap_volume_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_RIGHT, &ap_volume_hdl},
#ifdef ZOOM_SUPPORT
	{CTL_MSG_TYPE_KEY,	V_KEY_ZOOM, &ap_zoom_hdl},
#endif
	{CTL_MSG_TYPE_KEY,	V_KEY_AUDIO, &ap_audio_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_FAV, &ap_favorite_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_SAT, &ap_satellite_hdl},
#ifdef HOTKEY_SUPPORT
	{CTL_MSG_TYPE_KEY,	V_KEY_F1, &ap_hotkey_hdl},
#endif
#ifdef FIND_SUPPORT
	{CTL_MSG_TYPE_KEY,	V_KEY_FIND,&ap_find_hdl},
#endif
	{CTL_MSG_TYPE_KEY,	V_KEY_P_DOWN,&ap_keyboard_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_INFO,&ap_sysinfo_hdl},
	{CTL_MSG_TYPE_KEY,	V_KEY_0,	&ap_multiview_hdl},
#ifdef RECORD_SUPPORT
	{CTL_MSG_TYPE_KEY,	V_KEY_RECORD,	&ap_record_hdl},
#endif
};

struct ap_handle_t*  ap_find_handle(ControlMsgType_t  msg_type,UINT32 msg_code)
{
	int i,n;
	struct root_ap_handle_t* roothandle;
	
	n = sizeof(root_ap_handle)/sizeof(root_ap_handle[0]);
	for(i=0;i<n;i++)
	{
		roothandle = &root_ap_handle[i];
		if(roothandle->msg_type == msg_type 
			&& roothandle->msg_code == msg_code)
		{
			return roothandle->ap_handle;
		}
	}

	return NULL;
}



⌨️ 快捷键说明

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