Annotation of prex-old/dev/arm/gba/keymap.h, Revision 1.1
1.1 ! nbrk 1: /*-
! 2: * Copyright (c) 2005, Kohsuke Ohtani
! 3: * All rights reserved.
! 4: *
! 5: * Redistribution and use in source and binary forms, with or without
! 6: * modification, are permitted provided that the following conditions
! 7: * are met:
! 8: * 1. Redistributions of source code must retain the above copyright
! 9: * notice, this list of conditions and the following disclaimer.
! 10: * 2. Redistributions in binary form must reproduce the above copyright
! 11: * notice, this list of conditions and the following disclaimer in the
! 12: * documentation and/or other materials provided with the distribution.
! 13: * 3. Neither the name of the author nor the names of any co-contributors
! 14: * may be used to endorse or promote products derived from this software
! 15: * without specific prior written permission.
! 16: *
! 17: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
! 18: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
! 19: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
! 20: * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
! 21: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! 22: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
! 23: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
! 24: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
! 25: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
! 26: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! 27: * SUCH DAMAGE.
! 28: */
! 29:
! 30: /*
! 31: * keymap.h - Keyboard mapping
! 32: */
! 33: #include <prex/keycode.h>
! 34:
! 35: struct _key_info {
! 36: int pos_x; /* Cursor position */
! 37: int width; /* Cursor width */
! 38: u_char normal; /* Normal code */
! 39: u_char shifted; /* Shifted code */
! 40: };
! 41:
! 42: const struct _key_info key_info[5][14] =
! 43: {{{0, 9, '`', '~'},
! 44: {8, 9, '1', '!'},
! 45: {16, 9, '2', '@'},
! 46: {24, 9, '3', '#'},
! 47: {32, 9, '4', '$'},
! 48: {40, 9, '5', '%'},
! 49: {48, 9, '6', '^'},
! 50: {56, 9, '7', '&'},
! 51: {64, 9, '8', '*'},
! 52: {72, 9, '9', '('},
! 53: {80, 9, '0', ')'},
! 54: {88, 9, '-', '_'},
! 55: {96, 9, '=', '+'},
! 56: {104, 15, '\b', '\b'}}, /* back space */
! 57:
! 58: {{0, 15, '\t', '\t'}, /* tab */
! 59: {14, 9, 'q', 'Q'},
! 60: {22, 9, 'w', 'W'},
! 61: {30, 9, 'e', 'E'},
! 62: {38, 9, 'r', 'R'},
! 63: {46, 9, 't', 'T'},
! 64: {54, 9, 'y', 'Y'},
! 65: {62, 9, 'u', 'U'},
! 66: {70, 9, 'i', 'I'},
! 67: {78, 9, 'o', 'O'},
! 68: {86, 9, 'p', 'P'},
! 69: {94, 9, '[', '{'},
! 70: {102, 9, ']', '}'},
! 71: {110, 9, '\\', '|'}},
! 72:
! 73: {{0, 17, K_CAPS, K_CAPS},
! 74: {16, 9, 'a', 'A'},
! 75: {24, 9, 's', 'S'},
! 76: {32, 9, 'd', 'D'},
! 77: {40, 9, 'f', 'F'},
! 78: {48, 9, 'g', 'G'},
! 79: {56, 9, 'h', 'H'},
! 80: {64, 9, 'j', 'J'},
! 81: {72, 9, 'k', 'K'},
! 82: {80, 9, 'l', 'L'},
! 83: {88, 9, ';', ':'},
! 84: {96, 9, '\'','"'},
! 85: {104, 15, '\n', '\n'},
! 86: {0, 0, 0, 0}}, /* dummy */
! 87:
! 88: {{0, 19, K_SHFT, K_SHFT},
! 89: {18, 9, 'z', 'Z'},
! 90: {26, 9, 'x', 'X'},
! 91: {34, 9, 'c', 'C'},
! 92: {42, 9, 'v', 'V'},
! 93: {50, 9, 'b', 'B'},
! 94: {58, 9, 'n', 'N'},
! 95: {66, 9, 'm', 'M'},
! 96: {74, 9, ',', '<'},
! 97: {82, 9, '.', '>'},
! 98: {90, 9, '/', '?'},
! 99: {98, 11, K_PGUP, K_PGUP}, /* special */
! 100: {108, 11, K_PGDN, K_PGDN}, /* special */
! 101: {0, 0, 0, 0}}, /* dummy */
! 102:
! 103: {{0, 12, 0x1b, 0x1b}, /* escape */
! 104: {11, 12, K_INS, K_INS},
! 105: {22, 13, 0x7f, 0x7f}, /* delete */
! 106: {34, 53, ' ', ' '},
! 107: {34, 53, ' ', ' '},
! 108: {34, 53, ' ', ' '},
! 109: {34, 53, ' ', ' '},
! 110: {34, 53, ' ', ' '},
! 111: {34, 53, ' ', ' '},
! 112: {86, 9, K_DOWN, K_DOWN},
! 113: {94, 9, K_UP, K_UP },
! 114: {102, 9, K_LEFT, K_LEFT},
! 115: {110, 9, K_RGHT, K_RGHT},
! 116: {0, 0, 0, 0}}, /* dummy */
! 117: };
! 118:
! 119: /* Maximum colum number for each row */
! 120: u_int max_x[] = {13,13,12,12,12};
! 121:
CVSweb