USB HID devices need to support "clear EP halt" (tested with Win98SE).

This commit is contained in:
Volker Ruppert 2017-02-24 20:19:00 +00:00
parent a5dc4b050c
commit 5366be7030

View File

@ -7,7 +7,7 @@
//
// Copyright (c) 2005 Fabrice Bellard
// Copyright (c) 2007 OpenMoko, Inc. (andrew@openedhand.com)
// Copyright (C) 2009-2016 The Bochs Project
// Copyright (C) 2009-2017 The Bochs Project
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@ -803,6 +803,11 @@ int usb_hid_device_c::handle_control(int request, int value, int index, int leng
goto fail;
}
break;
case EndpointOutRequest | USB_REQ_CLEAR_FEATURE:
if ((value == 0) && (index != 0x81)) { /* clear EP halt */
goto fail;
}
break;
case GET_REPORT:
if ((d.type == USB_DEV_TYPE_MOUSE) ||
(d.type == USB_DEV_TYPE_TABLET)) {