Changeset 1b20da0 in mainline for uspace/app/mkbd/main.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkbd/main.c
rdf6ded8 r1b20da0 151 151 while (field != NULL) { 152 152 if (field->value != 0) { 153 const char *key_str = 153 const char *key_str = 154 154 usbhid_multimedia_usage_to_str(field->usage); 155 155 printf("Pressed key: %s\n", key_str); … … 158 158 field = usb_hid_report_get_sibling( 159 159 report, field, path, USB_HID_PATH_COMPARE_END 160 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 160 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 161 161 USB_HID_REPORT_TYPE_INPUT); 162 162 } … … 281 281 while (true) { 282 282 /** @todo Try blocking call. */ 283 rc = usbhid_dev_get_event(dev_sess, event, size, &actual_size, 283 rc = usbhid_dev_get_event(dev_sess, event, size, &actual_size, 284 284 &event_nr, 0); 285 285 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.