Ignore:
File:
1 edited

Legend:

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

    rb43bcf1 r0f21c0c  
    3636 */
    3737
    38 #include <usb/usbdrv.h>
    3938#include <driver.h>
    4039#include <ipc/driver.h>
     
    265264        for (i = 0; i < count; ++i) {
    266265                printf("%d ", key_codes[i]);
     266        }
     267        printf("\n");
     268
     269        for (i = 0; i < count; ++i) {
    267270                // TODO: Key press / release
    268271
    269272                // TODO: NOT WORKING
    270273                unsigned int key = usbkbd_parse_scancode(key_codes[i]);
     274
     275                if (key == 0) {
     276                        continue;
     277                }
    271278                kbd_push_ev(KEY_PRESS, key);
    272279        }
     
    348355                {
    349356                        .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)
    351360                }
    352361        };
Note: See TracChangeset for help on using the changeset viewer.