📄 ps2keycodes.h
字号:
/*****************************************************************************
*
* MODULE: PS2 Keycodes Header File
*
* COMPONENT: $RCSfile$
*
* VERSION: $Name$
*
* REVISION: $Revision$
*
* DATED: $Date$
*
* STATUS: $State$
*
* AUTHOR: APVW
*
* DESCRIPTION:
* Access functions and definitions for keyboard translation tables.
*
* LAST MODIFIED BY: $Author$
* $Modtime$
*
****************************************************************************
*
* This software is owned by Jennic and/or its supplier and is protected
* under applicable copyright laws. All rights are reserved. We grant You,
* and any third parties, a license to use this software solely and
* exclusively on Jennic products. You, and any third parties must reproduce
* the copyright and warranty notice and any other legend of ownership on each
* copy or partial copy of the software.
*
* THIS SOFTWARE IS PROVIDED "AS IS". JENNIC MAKES NO WARRANTIES, WHETHER
* EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,
* ACCURACY OR LACK OF NEGLIGENCE. JENNIC SHALL NOT, IN ANY CIRCUMSTANCES,
* BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, SPECIAL,
* INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.
*
* Copyright Jennic Ltd 2005, 2006. All rights reserved
*
****************************************************************************/
/****************************************************************************/
/*** Macro Definitions ***/
/****************************************************************************/
#define KBD_CNTRL_CODE_BASE 0x80
#define KBD_TAB KBD_CNTRL_CODE_BASE
#define KBD_SPACE KBD_CNTRL_CODE_BASE + 1
#define KBD_ENTER KBD_CNTRL_CODE_BASE + 2
#define KBD_END KBD_CNTRL_CODE_BASE + 3
#define KBD_L_ARROW KBD_CNTRL_CODE_BASE + 4
#define KBD_HOME KBD_CNTRL_CODE_BASE + 5
#define KBD_DELETE KBD_CNTRL_CODE_BASE + 6
#define KB_D_ARROW KBD_CNTRL_CODE_BASE + 7
#define KBD_R_ARROW KBD_CNTRL_CODE_BASE + 8
#define KBD_U_ARROW KBD_CNTRL_CODE_BASE + 9
#define KBD_PG_DN KBD_CNTRL_CODE_BASE + 10
#define KBD_PG_UP KBD_CNTRL_CODE_BASE + 11
#define KBD_BKSP KBD_CNTRL_CODE_BASE + 12
/* special keys */
#define KBD_L_SHIFT 0x12
#define KBD_R_SHIFT 0x59
#define KBD_CAPS_LOCK 0x58
#define KBD_CHR_SIZE 240
/****************************************************************************/
/*** Exported Functions ***/
/****************************************************************************/
PUBLIC const uint8 au8alphabet [KBD_CHR_SIZE];
PUBLIC const uint8 au8shiftedAlphabet[KBD_CHR_SIZE];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -