Changeset 0f09bd45 in mainline
- Timestamp:
- 2006-06-06T23:27:06Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7284260
- Parents:
- 9a71438
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kbd/arch/ppc32/src/kbd.c
r9a71438 r0f09bd45 41 41 42 42 43 static char lchars[0x80] = { 44 'a', 's', 'd', 'f', 'h', 'g', 'z', 'x', 'c', 'v', 0, 'b', 'q', 'w', 'e', 'r', 45 'y', 't', '1', '2', '3', '4', '6', '5', '=', '9', '7', '-', '8', '0', ']', 'o', 46 'u', '[', 'i', 'p', 13, 'l', 'j', '\'', 'k', ';', '\\', ',', '/', 'n', 'm', '.', 47 9, 32, '`', 8, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48 0, '.', 0, '*', 0, '+', 0, 0, 0, 0, 0, '/', 13, 0, '-', 0, 49 0, 0, '0', '1', '2', '3', '4', '5', '6', '7', 0, '8', '9', 0, 0, 0, 50 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 52 }; 53 54 43 55 int kbd_arch_init(void) 44 56 { … … 49 61 int kbd_arch_process(keybuffer_t *keybuffer, int scan_code) 50 62 { 51 keybuffer_push(keybuffer, scan_code); 63 uint8_t scancode = (uint8_t) scan_code; 64 65 if ((scancode != 0) && ((scancode & 0x80) != 0x80)) 66 keybuffer_push(keybuffer, lchars[scancode & 0x7f]); 67 52 68 return 1; 53 69 }
Note:
See TracChangeset
for help on using the changeset viewer.