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

Changeset 7304663 in mainline


Ignore:
Timestamp:
2011-04-22T10:10:40Z (11 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master
Children:
28d7185, 9b78020
Parents:
cf2ccd4
Message:

Tiket #200 fixed

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbd/kbddev.c

    rcf2ccd4 r7304663  
    694694        while (field != NULL) {
    695695                usb_log_debug2("FIELD (%p) - VALUE(%d) USAGE(%u)\n",
    696                     field, field->value, field->value);
     696                    field, field->value, field->usage);
    697697               
    698698                assert(i < kbd_dev->key_count);
     
    709709                 *       two parts of the Report somehow.
    710710                 */
    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                }
    712717                usb_log_debug2("Saved %u. key usage %d\n", i, kbd_dev->keys[i]);
    713718               
  • uspace/lib/usb/src/hidparser.c

    rcf2ccd4 r7304663  
    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];
Note: See TracChangeset for help on using the changeset viewer.