Changeset 18b6a88 in mainline for uspace/drv/hid/usbhid/mouse/mousedev.c
- Timestamp:
- 2018-04-15T09:35:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/mouse/mousedev.c
r8ebe212 r18b6a88 184 184 hid_dev->report_id, &hid_dev->report, 185 185 USB_HIDUT_USAGE_GENERIC_DESKTOP_Y); 186 const usb_hid_report_field_t *wheel = get_mouse_axis_move_field(186 const usb_hid_report_field_t *wheel = get_mouse_axis_move_field( 187 187 hid_dev->report_id, &hid_dev->report, 188 188 USB_HIDUT_USAGE_GENERIC_DESKTOP_WHEEL); … … 232 232 } 233 233 errno_t ret = 234 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_BUTTON, 0);234 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_BUTTON, 0); 235 235 if (ret != EOK) { 236 236 usb_hid_report_path_free(path); … … 241 241 242 242 usb_hid_report_field_t *field = usb_hid_report_get_sibling( 243 &hid_dev->report, NULL, path, USB_HID_PATH_COMPARE_END 244 |USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, USB_HID_REPORT_TYPE_INPUT);243 &hid_dev->report, NULL, path, USB_HID_PATH_COMPARE_END | 244 USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, USB_HID_REPORT_TYPE_INPUT); 245 245 246 246 while (field != NULL) { … … 263 263 264 264 field = usb_hid_report_get_sibling( 265 &hid_dev->report, field, path, USB_HID_PATH_COMPARE_END 266 |USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,265 &hid_dev->report, field, path, USB_HID_PATH_COMPARE_END | 266 USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 267 267 USB_HID_REPORT_TYPE_INPUT); 268 268 }
Note:
See TracChangeset
for help on using the changeset viewer.