fixed pikvm/pikvm#159: workaround for windows 98 absolute mouse bug

This commit is contained in:
Maxim Devaev
2021-08-14 09:21:04 +03:00
parent c4b9eba250
commit ed5952f13e
4 changed files with 21 additions and 1 deletions

View File

@@ -161,7 +161,11 @@ class UsbMouseAbsolute {
void sendMove(int x, int y) {
CHECK_HID_EP;
#ifdef HID_USB_ABS_WIN98_FIX
_mouse.moveTo(x << 1, y << 1);
#else
_mouse.moveTo(x, y);
#endif
}
void sendWheel(int delta_y) {