Changeset 94c0dcbd in mainline for uspace/lib/usb/src/hidparser.c


Ignore:
Timestamp:
2011-04-28T12:32:08Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
956e8ea
Parents:
308a5d5 (diff), 28d7185 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Changes from maklf - extended usages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hidparser.c

    r308a5d5 r94c0dcbd  
    175175                if(report_item->usages_count > 0 && ((report_item->usage_minimum == 0) && (report_item->usage_maximum == 0))) {
    176176                        uint32_t usage;
    177                         if(report_item->type == USB_HID_REPORT_TYPE_INPUT) {
     177                        if(report_item->type != USB_HID_REPORT_TYPE_INPUT) {
    178178                                if(i < report_item->usages_count){
    179179                                        usage = report_item->usages[i];
     
    193193
    194194                                               
    195                         if((usage & 0xFF00) != 0){
     195                        if((usage & 0xFFFF0000) != 0){
    196196                                field->usage_page = (usage >> 16);                                     
    197                                 field->usage = (usage & 0xFF);
     197                                field->usage = (usage & 0xFFFF);
    198198                        }
    199199                        else {
Note: See TracChangeset for help on using the changeset viewer.