Changeset deece2f in mainline for uspace/drv/usbhid/main.c


Ignore:
Timestamp:
2011-02-21T22:25:58Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
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.
Message:

Development branch merge

File:
1 edited

Legend:

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

    rfb78ae72 rdeece2f  
    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.