Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/main.c

    r0f21c0c rb43bcf1  
    3636 */
    3737
     38#include <usb/usbdrv.h>
    3839#include <driver.h>
    3940#include <ipc/driver.h>
     
    264265        for (i = 0; i < count; ++i) {
    265266                printf("%d ", key_codes[i]);
    266         }
    267         printf("\n");
    268 
    269         for (i = 0; i < count; ++i) {
    270267                // TODO: Key press / release
    271268
    272269                // TODO: NOT WORKING
    273270                unsigned int key = usbkbd_parse_scancode(key_codes[i]);
    274 
    275                 if (key == 0) {
    276                         continue;
    277                 }
    278271                kbd_push_ev(KEY_PRESS, key);
    279272        }
     
    355348                {
    356349                        .pipe = &kbd_dev->poll_pipe,
    357                         .description = &poll_endpoint_description,
    358                         .interface_no =
    359                             usb_device_get_assigned_interface(kbd_dev->device)
     350                        .description = &poll_endpoint_description
    360351                }
    361352        };
Note: See TracChangeset for help on using the changeset viewer.