| 1 | /* FCE Ultra - NES/Famicom Emulator |
| 2 | * |
| 3 | * Copyright notice for this file: |
| 4 | * Copyright (C) 2002 Ben Parnell |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 | */ |
| 20 | |
| 21 | #define SCAN_GRAVE 0x29 |
| 22 | #define SCAN_1 0x02 |
| 23 | #define SCAN_2 0x03 |
| 24 | #define SCAN_3 0x04 |
| 25 | #define SCAN_4 0x05 |
| 26 | #define SCAN_5 0x06 |
| 27 | #define SCAN_6 0x07 |
| 28 | #define SCAN_7 0x08 |
| 29 | #define SCAN_8 0x09 |
| 30 | #define SCAN_9 0x0A |
| 31 | #define SCAN_0 0x0B |
| 32 | #define SCAN_MINUS 0x0C |
| 33 | #define SCAN_EQUAL 0x0D |
| 34 | #define SCAN_BACKSLASH 0x2B |
| 35 | #define SCAN_BACKSPACE 0x0E |
| 36 | #define SCAN_TAB 0x0F |
| 37 | #define SCAN_Q 0x10 |
| 38 | #define SCAN_W 0x11 |
| 39 | #define SCAN_E 0x12 |
| 40 | #define SCAN_R 0x13 |
| 41 | #define SCAN_T 0x14 |
| 42 | #define SCAN_Y 0x15 |
| 43 | #define SCAN_U 0x16 |
| 44 | #define SCAN_I 0x17 |
| 45 | #define SCAN_O 0x18 |
| 46 | #define SCAN_P 0x19 |
| 47 | #define SCAN_BRACKET_LEFT 0x1A |
| 48 | #define SCAN_BRACKET_RIGHT 0x1B |
| 49 | #define SCAN_LOWBACKSLASH 0x2B |
| 50 | #define SCAN_CAPSLOCK 0x3A |
| 51 | #define SCAN_A 0x1E |
| 52 | #define SCAN_S 0x1F |
| 53 | #define SCAN_D 0x20 |
| 54 | #define SCAN_F 0x21 |
| 55 | #define SCAN_G 0x22 |
| 56 | #define SCAN_H 0x23 |
| 57 | #define SCAN_J 0x24 |
| 58 | #define SCAN_K 0x25 |
| 59 | #define SCAN_L 0x26 |
| 60 | #define SCAN_SEMICOLON 0x27 |
| 61 | #define SCAN_APOSTROPHE 0x28 |
| 62 | #define SCAN_ENTER 0x1C |
| 63 | #define SCAN_LEFTSHIFT 0x2A |
| 64 | #define SCAN_Z 0x2C |
| 65 | #define SCAN_X 0x2D |
| 66 | #define SCAN_C 0x2E |
| 67 | #define SCAN_V 0x2F |
| 68 | #define SCAN_B 0x30 |
| 69 | #define SCAN_N 0x31 |
| 70 | #define SCAN_M 0x32 |
| 71 | #define SCAN_COMMA 0x33 |
| 72 | #define SCAN_PERIOD 0x34 |
| 73 | #define SCAN_SLASH 0x35 |
| 74 | #define SCAN_RIGHTSHIFT 0x36 |
| 75 | #define SCAN_LEFTCONTROL 0x1D |
| 76 | #define SCAN_LEFTALT 0x38 |
| 77 | #define SCAN_SPACE 0x39 |
| 78 | |
| 79 | #define SCAN_RIGHTALT (0x38|0x80) |
| 80 | #define SCAN_RIGHTCONTROL (0x1D|0x80) |
| 81 | #define SCAN_BL_INSERT (0x52|0x80) |
| 82 | #define SCAN_BL_DELETE (0x53|0x80) |
| 83 | #define SCAN_BL_CURSORLEFT (0x4B|0x80) |
| 84 | #define SCAN_BL_HOME (0x47|0x80) |
| 85 | #define SCAN_BL_END (0x4F|0x80) |
| 86 | #define SCAN_BL_CURSORUP (0x48|0x80) |
| 87 | #define SCAN_BL_CURSORDOWN (0x50|0x80) |
| 88 | #define SCAN_BL_PAGEUP (0x49|0x80) |
| 89 | #define SCAN_BL_PAGEDOWN (0x51|0x80) |
| 90 | #define SCAN_BL_CURSORRIGHT (0x4D|0x80) |
| 91 | |
| 92 | #define SCAN_SCROLLLOCK 0x46 |
| 93 | /* Keys in the key pad area. */ |
| 94 | #define SCAN_NUMLOCK 0x45 |
| 95 | #define SCAN_HOME 0x47 |
| 96 | #define SCAN_CURSORLEFT 0x4B |
| 97 | #define SCAN_END 0x4F |
| 98 | #define SCAN_SLASH 0x35 |
| 99 | #define SCAN_CURSORUP 0x48 |
| 100 | #define SCAN_CENTER 0x4C |
| 101 | #define SCAN_CURSORDOWN 0x50 |
| 102 | #define SCAN_INSERT 0x52 |
| 103 | #define SCAN_ASTERISK 0x37 |
| 104 | #define SCAN_PAGEUP 0x49 |
| 105 | #define SCAN_CURSORRIGHT 0x4D |
| 106 | #define SCAN_PAGEDOWN 0x51 |
| 107 | #define SCAN_KP_DELETE 0x53 |
| 108 | #define SCAN_KP_MINUS 0x4A |
| 109 | #define SCAN_KP_PLUS 0x4E |
| 110 | #define SCAN_KP_ENTER 0x1C |
| 111 | |
| 112 | #define SCAN_ESCAPE 0x01 |
| 113 | #define SCAN_F1 0x3B |
| 114 | #define SCAN_F2 0x3C |
| 115 | #define SCAN_F3 0x3D |
| 116 | #define SCAN_F4 0x3E |
| 117 | #define SCAN_F5 0x3F |
| 118 | #define SCAN_F6 0x40 |
| 119 | #define SCAN_F7 0x41 |
| 120 | #define SCAN_F8 0x42 |
| 121 | #define SCAN_F9 0x43 |
| 122 | #define SCAN_F10 0x44 |
| 123 | #define SCAN_F11 0x57 |
| 124 | #define SCAN_F12 0x58 |
| 125 | |