Changes in uspace/drv/usbhid/kbd/kbddev.c [1b7dc5e9:310c4df] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/kbd/kbddev.c
r1b7dc5e9 r310c4df 255 255 256 256 if (hid_dev == NULL || hid_dev->data == NULL) { 257 usb_log_debug("default_connection_handler: "258 "Missing parameter.\n");259 257 async_answer_0(icallid, EINVAL); 260 258 return; … … 269 267 270 268 if (kbd_dev->console_phone != -1) { 271 usb_log_debug("default_connection_handler: "272 "console phone already set\n");273 269 async_answer_0(icallid, ELIMIT); 274 270 return; … … 276 272 277 273 kbd_dev->console_phone = callback; 278 279 usb_log_debug("default_connection_handler: OK\n");280 274 async_answer_0(icallid, EOK); 281 275 return; 282 276 } 283 277 284 usb_log_debug("default_connection_handler: Wrong function.\n");285 278 async_answer_0(icallid, EINVAL); 286 279 } … … 562 555 usb_log_debug2("Key pressed: %d (keycode: %d)\n", key, 563 556 kbd_dev->keys[i]); 557 usb_kbd_push_ev(hid_dev, kbd_dev, KEY_PRESS, key); 564 558 if (!usb_kbd_is_lock(key)) { 565 559 usb_kbd_repeat_start(kbd_dev, key); 566 560 } 567 usb_kbd_push_ev(hid_dev, kbd_dev, KEY_PRESS, key);568 561 } else { 569 562 // found, nothing happens
Note:
See TracChangeset
for help on using the changeset viewer.