diff options
author | Maxim Devaev <[email protected]> | 2021-08-15 17:34:42 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-08-15 20:16:48 +0300 |
commit | df098bd075e26fb6ecc75b2f7be5923371741677 (patch) | |
tree | 663a4e6a4808ed267e985c5b5d3d18bc4cf1f915 /hid/src/usb/hid.h | |
parent | 9afa6efbe4b8ee3186c5d840233c96115363460f (diff) |
win95 runtime switching
Diffstat (limited to 'hid/src/usb/hid.h')
-rw-r--r-- | hid/src/usb/hid.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hid/src/usb/hid.h b/hid/src/usb/hid.h index 6c3772f2..13f68cf1 100644 --- a/hid/src/usb/hid.h +++ b/hid/src/usb/hid.h @@ -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() { |