Revision 46aaebff hw/usb-hid.c

b/hw/usb-hid.c
855 855
{
856 856
    USBHIDState *s = (USBHIDState *)dev;
857 857

  
858
    if (s->kind != USB_KEYBOARD)
858
    switch(s->kind) {
859
    case USB_KEYBOARD:
860
        qemu_remove_kbd_event_handler();
861
        break;
862
    default:
859 863
        qemu_remove_mouse_event_handler(s->ptr.eh_entry);
860
    /* TODO: else */
864
    }
861 865
}
862 866

  
863 867
static int usb_hid_initfn(USBDevice *dev, int kind)

Also available in: Unified diff