mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Adjust timeout to lower values. The typical mouse response time is between 1 and 40ms. 300 should be more than enough to fail earlier when the device does not respond.
This commit is contained in:
@@ -211,9 +211,14 @@ namespace GHelper.Peripherals.Mouse
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual int USBTimeout()
|
||||||
|
{
|
||||||
|
return 300;
|
||||||
|
}
|
||||||
|
|
||||||
public override void SetProvider()
|
public override void SetProvider()
|
||||||
{
|
{
|
||||||
_usbProvider = new WindowsUsbProvider(_vendorId, _productId, path);
|
_usbProvider = new WindowsUsbProvider(_vendorId, _productId, path, USBTimeout());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void OnDisconnect()
|
protected virtual void OnDisconnect()
|
||||||
|
|||||||
Reference in New Issue
Block a user