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


Ignore:
File:
1 edited

Legend:

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

    r07b7c48 r5debe97  
    4444#include <devman.h>
    4545#include <loc.h>
    46 #include <usb/dev/hub.h>
    4746#include <usb/hid/iface.h>
    4847#include <usb/dev/pipes.h>
     
    178177
    179178        while (1) {
    180                 cons_event_t ev;
    181                 bool ok = console_get_event(con, &ev);
     179                kbd_event_t ev;
     180                bool ok = console_get_kbd_event(con, &ev);
    182181                if (!ok) {
    183182                        printf("Connection with console broken: %s.\n",
     
    186185                }
    187186
    188                 if (ev.type == CEV_KEY && ev.ev.key.type == KEY_PRESS &&
    189                     ev.ev.key.key == KC_ESCAPE) {
     187                if (ev.key == KC_ESCAPE) {
    190188                        break;
    191189                }
     
    224222        devman_handle_t dev_handle = 0;
    225223       
    226         int rc = usb_resolve_device_handle(devpath, NULL, NULL, &dev_handle);
     224        int rc = usb_resolve_device_handle(devpath, &dev_handle);
    227225        if (rc != EOK) {
    228226                printf("Device not found or not of USB kind: %s.\n",
Note: See TracChangeset for help on using the changeset viewer.