win95 runtime switching

This commit is contained in:
Maxim Devaev
2021-08-15 17:34:42 +03:00
parent 9afa6efbe4
commit df098bd075
12 changed files with 110 additions and 52 deletions

View File

@@ -149,11 +149,13 @@ class UsbMouseAbsolute {
public:
UsbMouseAbsolute() {}
void begin() {
void begin(bool win98_fix) {
_mouse.begin();
#ifdef HID_USB_ABS_WIN98_FIX
_mouse.setWin98Fix(true);
#endif
_mouse.setWin98FixEnabled(win98_fix);
}
bool isWin98FixEnabled() {
return _mouse.isWin98FixEnabled();
}
void clear() {