123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- /*++
- Copyright (c) 2015 Minoca Corp. All Rights Reserved
- Module Name:
- keymap.c
- Abstract:
- This module contains the keymap for the Google Embedded Controller Matrix
- Keyboard.
- Author:
- Evan Green 26-Aug-2015
- Environment:
- Kernel
- --*/
- //
- // ------------------------------------------------------------------- Includes
- //
- #include <minoca/kernel/driver.h>
- #include "goec.h"
- //
- // ---------------------------------------------------------------- Definitions
- //
- //
- // ------------------------------------------------------ Data Type Definitions
- //
- //
- // ----------------------------------------------- Internal Function Prototypes
- //
- //
- // -------------------------------------------------------------------- Globals
- //
- KEYBOARD_KEY GoecKeyMap[GOEC_MAX_COLUMNS][BITS_PER_BYTE] = {
- {
- KeyboardKeyInvalid,
- KeyboardKeyInvalid,
- KeyboardKeyLeftControl,
- KeyboardKeyInvalid,
- KeyboardKeyRightControl,
- KeyboardKeyInvalid,
- KeyboardKeyInvalid,
- KeyboardKeyInvalid,
- },
- {
- KeyboardKeyLeftWindows, // Meta
- KeyboardKeyEscape,
- KeyboardKeyTab,
- KeyboardKeyTilde,
- KeyboardKeyA,
- KeyboardKeyZ,
- KeyboardKey1,
- KeyboardKeyQ,
- },
- {
- KeyboardKeyF1,
- KeyboardKeyF4,
- KeyboardKeyF3,
- KeyboardKeyF2,
- KeyboardKeyD,
- KeyboardKeyC,
- KeyboardKey3,
- KeyboardKeyE,
- },
- {
- KeyboardKeyB,
- KeyboardKeyG,
- KeyboardKeyT,
- KeyboardKey5,
- KeyboardKeyF,
- KeyboardKeyV,
- KeyboardKey4,
- KeyboardKeyR,
- },
- {
- KeyboardKeyF10,
- KeyboardKeyF7,
- KeyboardKeyF6,
- KeyboardKeyF5,
- KeyboardKeyS,
- KeyboardKeyX,
- KeyboardKey2,
- KeyboardKeyW,
- },
- {
- KeyboardKeyInvalid, // RO
- KeyboardKeyInvalid,
- KeyboardKeyRightBracket,
- KeyboardKeyInvalid,
- KeyboardKeyK,
- KeyboardKeyComma,
- KeyboardKey8,
- KeyboardKeyI,
- },
- {
- KeyboardKeyN,
- KeyboardKeyH,
- KeyboardKeyY,
- KeyboardKey6,
- KeyboardKeyJ,
- KeyboardKeyM,
- KeyboardKey7,
- KeyboardKeyU,
- },
- {
- KeyboardKeyInvalid,
- KeyboardKeyInvalid,
- KeyboardKeyBackslash, // 102nd
- KeyboardKeyInvalid,
- KeyboardKeyInvalid,
- KeyboardKeyLeftShift,
- KeyboardKeyInvalid,
- KeyboardKeyRightShift,
- },
- {
- KeyboardKeyEquals,
- KeyboardKeyApostrophe,
- KeyboardKeyLeftBracket,
- KeyboardKeyDash,
- KeyboardKeySemicolon,
- KeyboardKeySlash,
- KeyboardKey0,
- KeyboardKeyP,
- },
- {
- KeyboardKeyInvalid,
- KeyboardKeyF9,
- KeyboardKeyF8,
- KeyboardKeyF13,
- KeyboardKeyL,
- KeyboardKeyPeriod,
- KeyboardKey9,
- KeyboardKeyO,
- },
- {
- KeyboardKeyRightAlt,
- KeyboardKeyInvalid,
- KeyboardKeyInvalid, // Yen
- KeyboardKeyInvalid,
- KeyboardKeyBackslash,
- KeyboardKeyInvalid,
- KeyboardKeyLeftAlt,
- KeyboardKeyInvalid,
- },
- {
- KeyboardKeyInvalid,
- KeyboardKeyBackspace,
- KeyboardKeyInvalid,
- KeyboardKeyBackslash,
- KeyboardKeyEnter,
- KeyboardKeySpace,
- KeyboardKeyDown,
- KeyboardKeyUp,
- },
- {
- KeyboardKeyInvalid,
- KeyboardKeyInvalid, // Henkan
- KeyboardKeyInvalid,
- KeyboardKeyInvalid, // Muhenkan
- KeyboardKeyInvalid,
- KeyboardKeyInvalid,
- KeyboardKeyRight,
- KeyboardKeyLeft,
- },
- };
- //
- // ------------------------------------------------------------------ Functions
- //
- //
- // --------------------------------------------------------- Internal Functions
- //
|