Changeset dd641e3 in mainline for kbd/arch/ia32/src/kbd.c
- Timestamp:
- 2006-06-04T12:22:54Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 26f48570
- Parents:
- 67ec84b
- File:
-
- 1 edited
-
kbd/arch/ia32/src/kbd.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kbd/arch/ia32/src/kbd.c
r67ec84b rdd641e3 58 58 #define SC_END 0x4f 59 59 60 #define FUNCTION_KEYS 0x100 61 60 62 static volatile int keyflags; /**< Tracking of multiple keypresses. */ 61 63 static volatile int lockflags; /**< Tracking of multiple keys lockings. */ 62 64 63 65 /** Primary meaning of scancodes. */ 64 static charsc_primary_map[] = {66 static int sc_primary_map[] = { 65 67 SPECIAL, /* 0x00 */ 66 68 SPECIAL, /* 0x01 - Esc */ … … 79 81 ' ', 80 82 SPECIAL, /* 0x3a - CapsLock */ 81 SPECIAL, /* 0x3b - F1 */82 SPECIAL, /* 0x3c - F2 */83 SPECIAL, /* 0x3d - F3 */84 SPECIAL, /* 0x3e - F4 */85 SPECIAL, /* 0x3f - F5 */86 SPECIAL, /* 0x40 - F6 */87 SPECIAL, /* 0x41 - F7 */88 SPECIAL, /* 0x42 - F8 */89 SPECIAL, /* 0x43 - F9 */90 SPECIAL, /* 0x44 - F10 */83 (FUNCTION_KEYS | 1), /* 0x3b - F1 */ 84 (FUNCTION_KEYS | 2), /* 0x3c - F2 */ 85 (FUNCTION_KEYS | 3), /* 0x3d - F3 */ 86 (FUNCTION_KEYS | 4), /* 0x3e - F4 */ 87 (FUNCTION_KEYS | 5), /* 0x3f - F5 */ 88 (FUNCTION_KEYS | 6), /* 0x40 - F6 */ 89 (FUNCTION_KEYS | 7), /* 0x41 - F7 */ 90 (FUNCTION_KEYS | 8), /* 0x42 - F8 */ 91 (FUNCTION_KEYS | 9), /* 0x43 - F9 */ 92 (FUNCTION_KEYS | 10), /* 0x44 - F10 */ 91 93 SPECIAL, /* 0x45 - NumLock */ 92 94 SPECIAL, /* 0x46 - ScrollLock */ … … 98 100 SPECIAL, /* 0x55 - F11/F12/PF1/FN */ 99 101 SPECIAL, /* 0x56 - unlabelled key next to LAlt */ 100 SPECIAL, /* 0x57 - F11 */101 SPECIAL, /* 0x58 - F12 */102 FUNCTION_KEYS | 11, /* 0x57 - F11 */ 103 FUNCTION_KEYS | 12, /* 0x58 - F12 */ 102 104 SPECIAL, /* 0x59 */ 103 105 SPECIAL, /* 0x5a */ … … 251 253 static int key_pressed(keybuffer_t *keybuffer, unsigned char key) 252 254 { 253 char*map = sc_primary_map;254 charascii = sc_primary_map[key];255 charshift, capslock;256 charletter = 0;255 int *map = sc_primary_map; 256 int ascii = sc_primary_map[key]; 257 int shift, capslock; 258 int letter = 0; 257 259 258 260 switch (key) {
Note:
See TracChangeset
for help on using the changeset viewer.
