Changes in uspace/drv/usbkbd/main.c [38c5dfa:71ed4849] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbkbd/main.c
r38c5dfa r71ed4849 78 78 } 79 79 80 #if 081 80 static void send_key(int key, int type, wchar_t c) { 82 81 async_msg_4(console_callback_phone, KBD_EVENT, type, key, 83 82 KM_NUM_LOCK, c); 84 83 } 85 #endif 84 85 static void send_alnum(int key, wchar_t c) { 86 printf(NAME ": sending key '%lc' to console\n", (wint_t) c); 87 send_key(key, KEY_PRESS, c); 88 send_key(key, KEY_RELEASE, c); 89 } 86 90 87 91 /* … … 227 231 sizeof(usb_hid_report_in_callbacks_t)); 228 232 callbacks->keyboard = usbkbd_process_keycodes; 233 234 if (console_callback_phone != -1) { 235 static size_t counter = 0; 236 counter++; 237 if (counter > 3) { 238 counter = 0; 239 send_alnum(KC_A, L'a'); 240 } 241 } 229 242 230 243 usb_hid_parse_report(kbd_dev->parser, buffer, actual_size, callbacks,
Note:
See TracChangeset
for help on using the changeset viewer.