Changeset 21bb58d in mainline for uspace/drv/usbmouse/mouse.c
- Timestamp:
- 2011-03-02T20:20:42Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 24aa62c, 5dd9209
- Parents:
- 103ae7f8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbmouse/mouse.c
r103ae7f8 r21bb58d 37 37 #include <usb/debug.h> 38 38 #include <errno.h> 39 #include <ipc/mouse.h> 39 40 40 41 int usb_mouse_polling_fibril(void *arg) … … 94 95 } 95 96 97 if (mouse->console_phone >= 0) { 98 if ((shift_x != 0) || (shift_y != 0)) { 99 /* FIXME: guessed for QEMU */ 100 async_req_2_0(mouse->console_phone, 101 MEVENT_MOVE, 102 - shift_x / 10, - shift_y / 10); 103 } 104 if (butt) { 105 /* FIXME: proper button clicking. */ 106 async_req_2_0(mouse->console_phone, 107 MEVENT_BUTTON, 1, 1); 108 async_req_2_0(mouse->console_phone, 109 MEVENT_BUTTON, 1, 0); 110 } 111 } 112 96 113 usb_log_debug("buttons=%s dX=%+3d dY=%+3d wheel=%+3d\n", 97 114 str_buttons, shift_x, shift_y, wheel);
Note:
See TracChangeset
for help on using the changeset viewer.