summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
Diffstat (limited to 'hid')
-rw-r--r--hid/platformio.ini4
-rw-r--r--hid/src/usb/hid.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/hid/platformio.ini b/hid/platformio.ini
index a8a0988d..fa42db0b 100644
--- a/hid/platformio.ini
+++ b/hid/platformio.ini
@@ -7,7 +7,7 @@ platform = atmelavr
board = micro
framework = arduino
lib_deps =
- git+https://github.com/NicoHood/HID#50c1c5745aee201b8f3388c31db7cc66292b2ea5
+ git+https://github.com/mdevaev/HID#f12b7d633f7437552707d6ccd411204cf36601f2
git+https://github.com/Harvie/ps2dev#v0.0.3
extra_scripts =
@@ -24,6 +24,8 @@ build_flags =
-DHID_WITH_USB
-DHID_SET_USB_KBD
-DHID_SET_USB_MOUSE_ABS
+# ----- The USB ABS fix for Windows 98 (https://github.com/pikvm/pikvm/issues/159) -----
+# -DHID_USB_ABS_WIN98_FIX
# ----- PS2 keyboard only -----
# -DHID_WITH_PS2
# -DHID_SET_PS2_KBD
diff --git a/hid/src/usb/hid.h b/hid/src/usb/hid.h
index f40cbf36..6c3772f2 100644
--- a/hid/src/usb/hid.h
+++ b/hid/src/usb/hid.h
@@ -151,6 +151,9 @@ class UsbMouseAbsolute {
void begin() {
_mouse.begin();
+#ifdef HID_USB_ABS_WIN98_FIX
+ _mouse.setWin98Fix(true);
+#endif
}
void clear() {