Changeset 801579fe in mainline for uspace/kbd/arch/ia64/src/kbd.c
- Timestamp:
- 2006-09-07T19:46:23Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 253f35a1
- Parents:
- 9141377
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/kbd/arch/ia64/src/kbd.c
r9141377 r801579fe 54 54 #define KEY_F12 0x7e34325b1b 55 55 56 57 56 #define FUNCTION_KEYS 0x100 58 57 … … 91 90 int scan_code = IPC_GET_ARG2(*call); 92 91 93 94 92 /* 95 93 * Please preserve this code (it can be used to determine scancodes) … … 105 103 } else { 106 104 107 108 105 if (buf == 0x1b) { 109 106 esc_count++; … … 119 116 } else { 120 117 switch (buf) { 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 118 case KEY_F1: 119 keybuffer_push(keybuffer, FUNCTION_KEYS | 1); 120 break; 121 case KEY_F2: 122 keybuffer_push(keybuffer, FUNCTION_KEYS | 2); 123 break; 124 case KEY_F3: 125 keybuffer_push(keybuffer, FUNCTION_KEYS | 3); 126 break; 127 case KEY_F4: 128 keybuffer_push(keybuffer, FUNCTION_KEYS | 4); 129 break; 130 case KEY_F5: 131 keybuffer_push(keybuffer, FUNCTION_KEYS | 5); 132 break; 133 case KEY_F6: 134 keybuffer_push(keybuffer, FUNCTION_KEYS | 6); 135 break; 136 case KEY_F7: 137 keybuffer_push(keybuffer, FUNCTION_KEYS | 7); 138 break; 139 case KEY_F8: 140 keybuffer_push(keybuffer, FUNCTION_KEYS | 8); 141 break; 142 case KEY_F9: 143 keybuffer_push(keybuffer, FUNCTION_KEYS | 9); 144 break; 145 case KEY_F10: 146 keybuffer_push(keybuffer, FUNCTION_KEYS | 10); 147 break; 148 case KEY_F11: 149 keybuffer_push(keybuffer, FUNCTION_KEYS | 11); 150 break; 151 case KEY_F12: 152 keybuffer_push(keybuffer, FUNCTION_KEYS | 12); 153 break; 157 154 } 158 155 }
Note:
See TracChangeset
for help on using the changeset viewer.