Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/lgtch-ultrax/lgtch-ultrax.c

    r3a6e423 r1989cdf  
    300300        usb_hid_report_path_set_report_id(path, 1);
    301301       
    302         lgtch_dev->key_count = usb_hid_report_size(
    303             hid_dev->report, 0, USB_HID_REPORT_TYPE_INPUT);
     302        lgtch_dev->key_count = usb_hid_report_size(hid_dev->report, 1,
     303                USB_HID_REPORT_TYPE_INPUT);
     304       
    304305        usb_hid_report_path_free(path);
    305306       
     
    399400            USB_HID_REPORT_TYPE_INPUT);
    400401       
    401 //      unsigned int key;
     402        unsigned int key;
    402403       
    403404        /*! @todo Is this iterating OK if done multiple times?
     
    405406         */
    406407        while (field != NULL) {
    407                 if(field->value != 0) {
    408                         usb_log_debug(NAME " KEY VALUE(%X) USAGE(%X)\n", field->value,
    409                             field->usage);
    410                
    411                         //key = usb_lgtch_map_usage(field->usage);
    412                         usb_lgtch_push_ev(hid_dev, KEY_PRESS, field->usage);
    413                 }
     408                usb_log_debug("\n");
     409                usb_log_debug(NAME " KEY VALUE(%X) USAGE(%X)\n", field->value,
     410                    field->usage);
     411
     412                key = field->usage;
     413                //key = usb_lgtch_map_usage(field->usage);
     414                usb_lgtch_push_ev(hid_dev, KEY_PRESS, key);
    414415               
    415416                field = usb_hid_report_get_sibling(
Note: See TracChangeset for help on using the changeset viewer.