Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 28d7185 in mainline


Ignore:
Timestamp:
2011-04-22T10:40:52Z (11 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master
Children:
664a331c, 94c0dcbd
Parents:
7304663
Message:

extended usages implemented

File:
1 edited

Legend:

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

    r7304663 r28d7185  
    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.