Changeset deece2f in mainline for uspace/drv/usbhid/main.c
- Timestamp:
- 2011-02-21T22:25:58Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 233e68d
- Parents:
- fb78ae72 (diff), dbe25f1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/main.c
rfb78ae72 rdeece2f 36 36 */ 37 37 38 #include <usb/usbdrv.h>39 38 #include <driver.h> 40 39 #include <ipc/driver.h> … … 265 264 for (i = 0; i < count; ++i) { 266 265 printf("%d ", key_codes[i]); 266 } 267 printf("\n"); 268 269 for (i = 0; i < count; ++i) { 267 270 // TODO: Key press / release 268 271 269 272 // TODO: NOT WORKING 270 273 unsigned int key = usbkbd_parse_scancode(key_codes[i]); 274 275 if (key == 0) { 276 continue; 277 } 271 278 kbd_push_ev(KEY_PRESS, key); 272 279 } … … 348 355 { 349 356 .pipe = &kbd_dev->poll_pipe, 350 .description = &poll_endpoint_description 357 .description = &poll_endpoint_description, 358 .interface_no = 359 usb_device_get_assigned_interface(kbd_dev->device) 351 360 } 352 361 };
Note:
See TracChangeset
for help on using the changeset viewer.