summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-08-14 10:35:22 +0300
committerMaxim Devaev <[email protected]>2021-08-14 10:35:22 +0300
commit21749f258cc2892a0dbe52000a8018a16e3498c7 (patch)
tree6966552d02b1ec4360a6d4719b4b9fd9b6391c15 /hid
parent40c326ba0884e0983d3bfa968c5fc0d897485f84 (diff)
fixed win98 again on arduino
Diffstat (limited to 'hid')
-rw-r--r--hid/platformio.ini2
-rw-r--r--hid/src/usb/hid.h7
2 files changed, 4 insertions, 5 deletions
diff --git a/hid/platformio.ini b/hid/platformio.ini
index ed847afb..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 =
diff --git a/hid/src/usb/hid.h b/hid/src/usb/hid.h
index 51b14b96..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() {
@@ -161,11 +164,7 @@ 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) {