📄 keypadtest.h
字号:
/******************************************************************************
**
** COPYRIGHT (C) 2002 Intel Corporation.
**
** This software as well as the software described in it is furnished under
** license and may only be used or copied in accordance with the terms of the
** license. The information in this file is furnished for informational use
** only, is subject to change without notice, and should not be construed as
** a commitment by Intel Corporation. Intel Corporation assumes no
** responsibility or liability for any errors or inaccuracies that may appear
** in this document or any software that may be provided in association with
** this document.
** Except as permitted by such license, no part of this document may be
** reproduced, stored in a retrieval system, or transmitted in any form or by
** any means without the express written consent of Intel Corporation.
**
** FILENAME: KeypadTest.h
**
** PURPOSE: This header file defines the Keypad device driver
** APIs.
**
** LAST MODIFIED: $Modtime: 7/17/03 1:01p $
******************************************************************************/
#ifndef _KeypadApi_h
#define _KeypadApi_h
/*
*******************************************************************************
* Cotulla PCMCIA Driver APIs.
*******************************************************************************
*/
// Define some ascii and some values to send for the other keys
#define KEY_BACK 0x08
#define KEY_TAB 0x09
#define KEY_ENT 0x0D
#define KEY_HOME 0x10
#define KEY_SHIFT 0x11
#define KEY_CTRL 0x12
#define KEY_SF1 0x13 // soft 1
#define KEY_SF2 0x14 // soft 2
#define KEY_SND 0x15 // send
#define KEY_END 0x16
#define KEY_LFT 0x17 // left
#define KEY_RGT 0x18 // right
#define KEY_UP 0x19 // up
#define KEY_DN 0x1A // down
#define KEY_ACT 0x1B // action
#define KEY_SPACE 0x20
#define KEY_EX 0x21 // !
#define KEY_LB 0x23 // #
#define KEY_DOL 0x24 // $
#define KEY_AMP 0x26 // &
#define KEY_SQ 0x27 // '
#define KEY_LP 0x28 // (
#define KEY_RP 0x29 // )
#define KEY_AST 0x2A // *
#define KEY_COM 0x2C // ,
#define KEY_PER 0x2E // period
#define KEY_FS 0x2F // forward slash
#define KEY_0 0x30
#define KEY_1 0x31
#define KEY_2 0x32
#define KEY_3 0x33
#define KEY_4 0x34
#define KEY_5 0x35
#define KEY_6 0x36
#define KEY_7 0x37
#define KEY_8 0x38
#define KEY_9 0x39
#define KEY_COL 0x3A // :
#define KEY_SEC 0x3B // ;
#define KEY_QUE 0x3F // ?
#define KEY_AT 0x40 // @
#define KEY_A 0x41
#define KEY_B 0x42
#define KEY_C 0x43
#define KEY_D 0x44
#define KEY_E 0x45
#define KEY_F 0x46
#define KEY_G 0x47
#define KEY_H 0x48
#define KEY_I 0x49
#define KEY_J 0x4A
#define KEY_K 0x4B
#define KEY_L 0x4C
#define KEY_M 0x4D
#define KEY_N 0x4E
#define KEY_O 0x4F
#define KEY_P 0x50
#define KEY_Q 0x51
#define KEY_R 0x52
#define KEY_S 0x53
#define KEY_T 0x54
#define KEY_U 0x55
#define KEY_V 0x56
#define KEY_W 0x57
#define KEY_X 0x58
#define KEY_Y 0x59
#define KEY_Z 0x5A
#define KEY_BS 0x5C // backslash
#define KEY_DEL 0x7F
int PostKeypadTest(void);
int PostFastTapTest(void);
void KPostKeypadTest(PVOID arg, PCHAR param);
void KPostFastTapTest(PVOID arg, PCHAR param);
char KeypadGetData(void);
void KeypadHWSetup(void);
void FastTapHWSetup(void);
char FastTapGetData(void);
#endif // _KeypadApi_h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -