Changeset 7304663 in mainline
- Timestamp:
- 2011-04-22T10:10:40Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 28d7185, 9b78020
- Parents:
- cf2ccd4
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/kbd/kbddev.c
rcf2ccd4 r7304663 694 694 while (field != NULL) { 695 695 usb_log_debug2("FIELD (%p) - VALUE(%d) USAGE(%u)\n", 696 field, field->value, field-> value);696 field, field->value, field->usage); 697 697 698 698 assert(i < kbd_dev->key_count); … … 709 709 * two parts of the Report somehow. 710 710 */ 711 kbd_dev->keys[i] = field->value; 711 if( field->value != 0 ) { 712 kbd_dev->keys[i] = field->usage; 713 } 714 else { 715 kbd_dev->keys[i] = 0; 716 } 712 717 usb_log_debug2("Saved %u. key usage %d\n", i, kbd_dev->keys[i]); 713 718 -
uspace/lib/usb/src/hidparser.c
rcf2ccd4 r7304663 175 175 if(report_item->usages_count > 0 && ((report_item->usage_minimum == 0) && (report_item->usage_maximum == 0))) { 176 176 uint32_t usage; 177 if(report_item->type != USB_HID_REPORT_TYPE_INPUT) {177 if(report_item->type == USB_HID_REPORT_TYPE_INPUT) { 178 178 if(i < report_item->usages_count){ 179 179 usage = report_item->usages[i];
Note:
See TracChangeset
for help on using the changeset viewer.