Changeset a49e171 in mainline
- Timestamp:
- 2011-04-08T11:59:36Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dc4c19e
- Parents:
- c32a585a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/mouse/mousedev.c
rc32a585a ra49e171 132 132 133 133 mouse_dev->console_phone = callback; 134 usb_log_debug("Console phone to mouse set ok .\n");134 usb_log_debug("Console phone to mouse set ok (%d).\n", callback); 135 135 async_answer_0(icallid, EOK); 136 136 return; … … 199 199 200 200 if (mouse_dev->console_phone >= 0) { 201 usb_log_debug("Console phone: %d\n", mouse_dev->console_phone); 201 202 if ((shift_x != 0) || (shift_y != 0)) { 202 203 /* FIXME: guessed for QEMU */ … … 276 277 } 277 278 278 usb_mouse_t *mouse_dev = (usb_mouse_t *)arg; 279 usb_hid_dev_t *hid_dev = (usb_hid_dev_t *)arg; 280 if (hid_dev->data == NULL) { 281 usb_log_error("Wrong argument to the mouse polling callback." 282 "\n"); 283 return false; 284 } 285 usb_mouse_t *mouse_dev = (usb_mouse_t *)hid_dev->data; 279 286 280 287 return usb_mouse_process_boot_report(mouse_dev, buffer, buffer_size);
Note:
See TracChangeset
for help on using the changeset viewer.