Changeset f401312 in mainline for uspace/drv/usbkbd/main.c
- Timestamp:
- 2011-01-14T12:34:42Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45019865
- Parents:
- b2a6fcfe (diff), 6610565b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbkbd/main.c
rb2a6fcfe rf401312 79 79 } 80 80 81 #if 0 81 82 static void send_key(int key, int type, wchar_t c) { 82 83 async_msg_4(console_callback_phone, KBD_EVENT, type, key, 83 84 KM_NUM_LOCK, c); 84 85 } 85 86 static void send_alnum(int key, wchar_t c) { 87 printf(NAME ": sending key '%lc' to console\n", (wint_t) c); 88 send_key(key, KEY_PRESS, c); 89 send_key(key, KEY_RELEASE, c); 90 } 86 #endif 91 87 92 88 /* … … 230 226 callbacks->keyboard = usbkbd_process_keycodes; 231 227 232 if (console_callback_phone != -1) {233 static size_t counter = 0;234 counter++;235 if (counter > 3) {236 counter = 0;237 send_alnum(KC_A, L'a');238 }239 }240 241 228 usb_hid_parse_report(kbd_dev->parser, buffer, actual_size, callbacks, 242 229 NULL);
Note:
See TracChangeset
for help on using the changeset viewer.