Changeset edb3cf2 in mainline for uspace/drv/bus/usb/usbhid/mouse/mousedev.c
- Timestamp:
- 2011-12-28T11:46:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 70172dc4
- Parents:
- acac2ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/mouse/mousedev.c
racac2ef redb3cf2 152 152 153 153 /*----------------------------------------------------------------------------*/ 154 154 #if 0 155 155 static void usb_mouse_send_wheel(const usb_mouse_t *mouse_dev, int wheel) 156 156 { … … 177 177 } 178 178 } 179 179 #endif 180 180 /*----------------------------------------------------------------------------*/ 181 181 … … 221 221 &hid_dev->report, USB_HIDUT_USAGE_GENERIC_DESKTOP_WHEEL); 222 222 223 if ( (shift_x != 0) || (shift_y != 0)) {223 if (shift_x || shift_y || wheel) { 224 224 async_exch_t *exch = 225 225 async_exchange_begin(mouse_dev->mouse_sess); 226 226 if (exch != NULL) { 227 async_req_2_0(exch, MOUSEEV_MOVE_EVENT, shift_x, shift_y); 227 async_msg_3(exch, MOUSEEV_MOVE_EVENT, 228 shift_x, shift_y, wheel); 228 229 async_exchange_end(exch); 229 230 } 230 231 } 231 232 #if 0 232 233 if (wheel != 0) 233 usb_mouse_send_wheel(mouse_dev, wheel);234 234 (void)usb_mouse_send_wheel(mouse_dev, wheel); 235 #endif 235 236 /* Buttons */ 236 237 usb_hid_report_path_t *path = usb_hid_report_path();
Note:
See TracChangeset
for help on using the changeset viewer.