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

📄 ps2keycodes.c

📁 该代码为Jennic公司芯片JN5121
💻 C
字号:
/****************************************************************************
 *
 * MODULE:             Wireless Keyboard Demo, Key Codes
 *
 * COMPONENT:          $RCSfile$
 *
 * VERSION:            $Name$
 *
 * REVISION:           $Revision$
 *
 * DATED:              $Date$
 *
 * STATUS:             $State$
 *
 * AUTHOR:             APV Ward
 *
 * DESCRIPTION:
 * Translates PS2 keyboard MAKE/BREAK codes into ASCII.
 * This file creates no executable code, it merely stores a couple of large
 * lookup tables.
 *
 * NOTE this lookup table mechanism favours speed over memory usage - the table
 * is sparsely populated and wasteful of code space.  A more efficient memory
 * solution would use a compact table and a search algorithm - but that would
 * be slower.
 *
 * 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
 *
 ****************************************************************************/

/****************************************************************************/
/***        Include files                                                 ***/
/****************************************************************************/
#include "jendefs.h"
#include "PS2keyCodes.h"

/****************************************************************************/
/***        Exported Variables                                            ***/
/****************************************************************************/

/* Lookup table for keyboard SHIFTED key codes */

PUBLIC const uint8 au8shiftedAlphabet[KBD_CHR_SIZE] = {
/* 00 */             0,
/* 01 */             0,
/* 02 */             0,
/* 03 */             0,
/* 04 */             0,
/* 05 */             0,
/* 06 */             0,
/* 07 */             0,
/* 08 */             0,
/* 09 */             0,
/* 0A */             0,
/* 0B */             0,
/* 0C */             0,
/* 0D */  KBD_TAB,
/* 0E */  '`',
/* 0F */             0,
/* 10 */             0,
/* 11 */             0,
/* 12 */             0,
/* 13 */             0,
/* 14 */             0,
/* 15 */  'Q',
/* 16 */  '!',
/* 17 */             0,
/* 18 */             0,
/* 19 */             0,
/* 1A */  'Z',
/* 1B */  'S',
/* 1C */  'A',
/* 1D */  'W',
/* 1E */  '"',
/* 1F */             0,
/* 20 */             0,
/* 21 */  'C',
/* 22 */  'X',
/* 23 */  'D',
/* 24 */  'E',
/* 25 */  '$',
/* 26 */  '

⌨️ 快捷键说明

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