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

📄 libkbd.h

📁 驱动测试
💻 H
字号:
/*
* This source code is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Lesser General Public License for more details.
*       
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*
* File Name: libkbd.h							
*
* Reference:
*
* Author: Li Feng                                                   
*
* Description:
*
* 	
* 
* History:
* 02/23/2005  Li Feng    Created
*  
*
*CodeReview Log:
* 
*/
#ifndef __LIBKBD_H__
#define __LIBKBD_H__

#ifdef __cplusplus
extern "C"{
#endif

#include "btype.h"

#define KEY_DOWN_ESC	1
#define KEY_DOWN_1		2
#define KEY_DOWN_2		3
#define KEY_DOWN_3		4
#define KEY_DOWN_4		5
#define KEY_DOWN_5		6
#define KEY_DOWN_6		7
#define KEY_DOWN_7		8
#define KEY_DOWN_8		9
#define KEY_DOWN_9		10
#define KEY_DOWN_0		11
#define KEY_DOWN_SUB	12
#define KEY_DOWN_PLUS	13	
#define KEY_DOWN_CANCLE	14
#define KEY_DOWN_TAB	15
#define KEY_DOWN_Q		16
#define KEY_DOWN_W		17
#define KEY_DOWN_E		18
#define KEY_DOWN_R		19
#define KEY_DOWN_T		20
#define KEY_DOWN_Y		21
#define KEY_DOWN_U		22
#define KEY_DOWN_I		23
#define KEY_DOWN_O		24
#define KEY_DOWN_P		25
#define KEY_DOWN_LBracket		26
#define KEY_DOWN_RBracket		27
#define KEY_DOWN_ENTER	28
#define KEY_DOWN_CTL	29
#define KEY_DOWN_A		30
#define KEY_DOWN_S		31
#define KEY_DOWN_D		32
#define KEY_DOWN_F		33
#define KEY_DOWN_G		34
#define KEY_DOWN_H		35
#define KEY_DOWN_J		36
#define KEY_DOWN_K		37
#define KEY_DOWN_L		38
#define KEY_DOWN_SEMICOLON		39
#define KEY_DOWN_QUOTATIOM		40
#define KEY_DOWN_L_SHIFT		42

#define KEY_DOWN_Z		44
#define KEY_DOWN_X		45
#define KEY_DOWN_C		46
#define KEY_DOWN_V		47
#define KEY_DOWN_B		48
#define KEY_DOWN_N		49
#define KEY_DOWN_M		50
//.
//.
//.

#define KEY_DOWN_F1		59
#define KEY_DOWN_F2		60
#define KEY_DOWN_F3		61
#define KEY_DOWN_F4		62
#define KEY_DOWN_F5		63
#define KEY_DOWN_F6		64
#define KEY_DOWN_F7		65
#define KEY_DOWN_F8		66
#define KEY_DOWN_F9		67
#define KEY_DOWN_F10	68

#define KEY_DOWN_F11	87
#define KEY_DOWN_F12	88

#define KEY_DOWN_LEFT	105
#define KEY_DOWN_RIGHT	106
#define KEY_DOWN_UP		103
#define KEY_DOWN_DOWN	108


#define HKBD void*

HKBD	KBD_Open(char *pDev);
BOOL	KBD_Read(HKBD hKBD, UINT8 *pKey);
void	KBD_Close(HKBD hKBD);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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