Changes in uspace/drv/bus/usb/usbhid/mouse/mousedev.c [1875a0c:5203e256] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/mouse/mousedev.c
r1875a0c r5203e256 44 44 #include <async_obsolete.h> 45 45 #include <str_error.h> 46 #include <ipc/mouse ev.h>46 #include <ipc/mouse.h> 47 47 #include <io/console.h> 48 48 … … 270 270 if ((shift_x != 0) || (shift_y != 0)) { 271 271 async_obsolete_req_2_0(mouse_dev->mouse_phone, 272 M OUSEEV_MOVE_EVENT, shift_x, shift_y);272 MEVENT_MOVE, shift_x, shift_y); 273 273 } 274 274 … … 296 296 && field->value != 0) { 297 297 async_obsolete_req_2_0(mouse_dev->mouse_phone, 298 M OUSEEV_BUTTON_EVENT, field->usage, 1);298 MEVENT_BUTTON, field->usage, 1); 299 299 mouse_dev->buttons[field->usage - field->usage_minimum] 300 300 = field->value; 301 } else if (mouse_dev->buttons[field->usage - field->usage_minimum] != 0 301 } else if ( 302 mouse_dev->buttons[field->usage - field->usage_minimum] != 0 302 303 && field->value == 0) { 303 304 M OUSEEV_BUTTON_EVENT, field->usage, 0);305 mouse_dev->buttons[field->usage - field->usage_minimum] =306 field->value;307 304 async_obsolete_req_2_0(mouse_dev->mouse_phone, 305 MEVENT_BUTTON, field->usage, 0); 306 mouse_dev->buttons[field->usage - field->usage_minimum] 307 = field->value; 308 } 308 309 309 310 field = usb_hid_report_get_sibling(
Note:
See TracChangeset
for help on using the changeset viewer.