summaryrefslogtreecommitdiff
path: root/hid/src
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-08-14 09:21:04 +0300
committerMaxim Devaev <[email protected]>2021-08-14 09:29:12 +0300
commited5952f13ef1baede4101934bc5df952ce66af1b (patch)
tree62d89ad0203fafdb018dc31ba97a3ae96c8aafca /hid/src
parentc4b9eba250b15afb09720d4a9e2818a9bf447efe (diff)
fixed pikvm/pikvm#159: workaround for windows 98 absolute mouse bug
Diffstat (limited to 'hid/src')
-rw-r--r--hid/src/usb/hid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hid/src/usb/hid.h b/hid/src/usb/hid.h
index f40cbf36..51b14b96 100644
--- a/hid/src/usb/hid.h
+++ b/hid/src/usb/hid.h
@@ -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) {