Changes in uspace/drv/usbhid/lgtch-ultrax/lgtch-ultrax.c [1989cdf:3a6e423] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/lgtch-ultrax/lgtch-ultrax.c
r1989cdf r3a6e423 300 300 usb_hid_report_path_set_report_id(path, 1); 301 301 302 lgtch_dev->key_count = usb_hid_report_size(hid_dev->report, 1, 303 USB_HID_REPORT_TYPE_INPUT); 304 302 lgtch_dev->key_count = usb_hid_report_size( 303 hid_dev->report, 0, USB_HID_REPORT_TYPE_INPUT); 305 304 usb_hid_report_path_free(path); 306 305 … … 400 399 USB_HID_REPORT_TYPE_INPUT); 401 400 402 unsigned int key;401 // unsigned int key; 403 402 404 403 /*! @todo Is this iterating OK if done multiple times? … … 406 405 */ 407 406 while (field != NULL) { 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);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 } 415 414 416 415 field = usb_hid_report_get_sibling(
Note:
See TracChangeset
for help on using the changeset viewer.