Revision 46115ac4

b/hw/usb-hid.c
782 782
            goto fail;
783 783
        break;
784 784
    case GET_PROTOCOL:
785
        if (s->kind != USB_KEYBOARD)
785
        if (s->kind != USB_KEYBOARD && s->kind != USB_MOUSE)
786 786
            goto fail;
787 787
        ret = 1;
788 788
        data[0] = s->protocol;
789 789
        break;
790 790
    case SET_PROTOCOL:
791
        if (s->kind != USB_KEYBOARD)
791
        if (s->kind != USB_KEYBOARD && s->kind != USB_MOUSE)
792 792
            goto fail;
793 793
        ret = 0;
794 794
        s->protocol = value;

Also available in: Unified diff