Changes in uspace/app/mkbd/main.c [5debe97:07b7c48] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkbd/main.c

    r5debe97 r07b7c48  
    4444#include <devman.h>
    4545#include <loc.h>
     46#include <usb/dev/hub.h>
    4647#include <usb/hid/iface.h>
    4748#include <usb/dev/pipes.h>
     
    177178
    178179        while (1) {
    179                 kbd_event_t ev;
    180                 bool ok = console_get_kbd_event(con, &ev);
     180                cons_event_t ev;
     181                bool ok = console_get_event(con, &ev);
    181182                if (!ok) {
    182183                        printf("Connection with console broken: %s.\n",
     
    185186                }
    186187
    187                 if (ev.key == KC_ESCAPE) {
     188                if (ev.type == CEV_KEY && ev.ev.key.type == KEY_PRESS &&
     189                    ev.ev.key.key == KC_ESCAPE) {
    188190                        break;
    189191                }
     
    222224        devman_handle_t dev_handle = 0;
    223225       
    224         int rc = usb_resolve_device_handle(devpath, &dev_handle);
     226        int rc = usb_resolve_device_handle(devpath, NULL, NULL, &dev_handle);
    225227        if (rc != EOK) {
    226228                printf("Device not found or not of USB kind: %s.\n",
Note: See TracChangeset for help on using the changeset viewer.