aw_input.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 52 行

H
52
字号
/*****************************************************************
**                                                             	**
**  Copyright (C) 2004 Amlogic,Inc.                            	**
**  All rights reserved                                        	**
**        Filename : aw_input.c /Project:AVOS  					** 
**        Revision : 1.0                                       	**
**                                                             	**
*****************************************************************/
#ifndef _AW_INPUT_H
#define _AW_INPUT_H
#include "Drivers\input\input.h"

/**
 * @file aw_input.h
 * @author LiChao, chao_li@amlogic.com.cn
 *
 */

/** @defgroup system_input Input device manage routines.
 * @ingroup gui
 */

#define MAX_INPUT_DEV_NUM	4

typedef INT32S (*CUSTOMERINPUTPROC)(INPUTDATA *pInputData);

/**
 * Call this function to read all registered input driver's input data, and 
 * send MSG_INPUT_EVENT message to Control Center.
 * @param [in] gui_app_id The ID of Control Center. Can call AWGetAppID(MEDIA_GUI, &gui_app_id) 
 * to get the ID of Control Center.
 * @return If get any input data from input device, return 1. Otherwise return 0.
 */
INT32S AWGetInput(INT8U gui_app_id) ;

/**
 * @brief Register a input device.
 * Register a input device and it's customize function. Why we need a customize function? 
 * Because the input data which got from input device is the original scan key of hardware.
 * Sometime we need change these keys to our defined key. So the customize function is a 
 * interface of conversion function.
 * @param [in] input_dev_fd input device handle.
 * @param [in] customer_input_handle The customize function point, will be called when the devie have a input.
 * @return return 0 if success.
 */
INT32S AWRegisterInputDev(avfs_device_driver input_dev_fd, CUSTOMERINPUTPROC customer_input_handle) ;


INT32U AWGetInputData(int dev_index, INPUTDATA* pinput_data);

#endif //end of _AW_INPUT_H

⌨️ 快捷键说明

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