"Fossies" - the Fresh Open Source Software Archive

Member "pcemu/keytabs.h" (22 Jan 2001, 3402 Bytes) of package /linux/privat/old/pcemu-1.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "keytabs.h" see the Fossies "Dox" file reference documentation.

    1 /****************************************************************************
    2 *                                                                           *
    3 *                            Third Year Project                             *
    4 *                                                                           *
    5 *                            An IBM PC Emulator                             *
    6 *                          For Unix and X Windows                           *
    7 *                                                                           *
    8 *                             By David Hedley                               *
    9 *                                                                           *
   10 *                                                                           *
   11 * This program is Copyrighted.  Consult the file COPYRIGHT for more details *
   12 *                                                                           *
   13 ****************************************************************************/
   14 
   15 BYTE scan_unshifted[256] =
   16 {
   17      0 ,0x1b, '1', '2', '3', '4', '5', '6',
   18     '7', '8', '9', '0', '-', '=',0x08,0x09,
   19     'q', 'w', 'e', 'r', 't', 'y', 'u', 'i',
   20     'o', 'p', '[', ']',0x0d,  0 , 'a', 's',
   21     'd', 'f', 'g', 'h', 'j', 'k', 'l', ';',
   22     '\'','`',  0 , 
   23 #ifdef KBUK     /* Keycode 0x2b */
   24      '#', 
   25 #else
   26      '\\',
   27 #endif
   28      'z', 'x', 'c', 'v',
   29      'b', 'n', 'm', ',', '.', '/',  0 , '*',
   30       0 , ' ',  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,
   31       0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 , '7',
   32      '8', '9', '-', '4', '5', '6', '+', '1',
   33      '2', '3', '0', '.',  0 ,  0 , '\\'
   34 };
   35 
   36 
   37 BYTE scan_shift[256] =
   38 {
   39      0 ,0x1b, '!', 
   40 #ifdef KBUK     /* Keycode 0x03 and 0x04 + shift */
   41      '"',0x9c,
   42 #else
   43      '@','#',
   44 #endif
   45      '$', '%', '^',
   46      '&', '*', '(', ')', '_', '+',0x08,  0 ,
   47      'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I',
   48      'O', 'P', '{', '}',0x0d,  0 , 'A', 'S',
   49      'D', 'F', 'G', 'H', 'J', 'K', 'L', ':',
   50 #ifdef KBUK     /* Keycode 0x28 and 0x29 + shift */
   51      '@',0xaa,
   52 #else
   53      '"','~',
   54 #endif
   55      0 , 
   56 #ifdef KBUK
   57      '~', 
   58 #else
   59      '|',
   60 #endif
   61     'Z', 'X', 'C', 'V',
   62     'B', 'N', 'M', '<', '>', '?', '/', '*',
   63      0 , ' ',  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,
   64      0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0  ,'7',
   65     '8', '9', '-', '4', '5', '6', '+', '1',
   66     '2', '3', '0', '.',  0 ,  0 , '|'
   67 };
   68 
   69 
   70 BYTE scan_alt[256] = 
   71 {
   72     0x00,0x01,0x78,0x79,0x7a,0x7b,0x7c,0x7d,
   73     0x7e,0x7f,0x80,0x81,0x82,0x83,0x0e,0xa5,
   74     0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
   75     0x18,0x19,0x1a,0x1b,0x1c,0x00,0x1e,0x1f,
   76     0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
   77     0x28,0x29,0x00,0x2b,0x2c,0x2d,0x2e,0x2f,
   78     0x30,0x31,0x32,0x33,0x34,0x35,0xa4,0x37,
   79     0x00,0x39,0x00,0x68,0x69,0x6a,0x6b,0x6c,
   80     0x6d,0x6e,0x6f,0x70,0x71,0x00,0x00,0x97,
   81     0x98,0x99,0x4a,0x9b,0x4c,0x9d,0x4e,0x9f,
   82     0xa0,0xa1,0xa2,0xa3
   83 };
   84 
   85 
   86 BYTE scan_ctrl[256] =
   87 {
   88      0 ,0x1b,  0 ,  0 ,  0 ,  0 ,  0 ,0x1e,
   89      0 ,  0 ,  0 ,  0 ,0x1f,  0 ,0x7f,  0 ,
   90     17 , 23 ,  5 , 18 , 20 , 25 , 21 ,  9 ,
   91     15 , 16 ,0x1b,0x1d,0x0a,  0 ,  1 , 19 ,
   92      4 ,  6 ,  7 ,  8 , 10 , 11 , 12 ,  0 ,
   93      0 ,0x1c,  0 ,  0 , 26 , 24 ,  3 , 22 ,
   94      2 , 14 , 13
   95 };
   96 
   97 BYTE scan_ctrl_high[] =
   98 {
   99     0x95, 0x96,    0,    0,    0, 0x5e, 0x5f, 0x60, 0x61, 0x62,
  100     0x63, 0x64, 0x65, 0x66, 0x67,    0,    0, 0x77, 0x8d, 0x84,
  101     0x8e, 0x73, 0x8f, 0x74, 0x90, 0x75, 0x91, 0x76, 0x92, 0x93,
  102        0,    0,    0, 0x89, 0x8a
  103 };