fixed win98 again on arduino

This commit is contained in:
Maxim Devaev 2021-08-14 10:35:22 +03:00
parent 40c326ba08
commit 21749f258c
2 changed files with 4 additions and 5 deletions

View File

@ -7,7 +7,7 @@ platform = atmelavr
board = micro board = micro
framework = arduino framework = arduino
lib_deps = 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 git+https://github.com/Harvie/ps2dev#v0.0.3
digitalWriteFast@1.0.0 digitalWriteFast@1.0.0
extra_scripts = extra_scripts =

View File

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