Patch by Andrey Korotaev <unC0Rr(a)inbox.ru>ru>: Fix scrolling with mouse
This multiplication was deleted when replacing old psaux driver by
i8042prt
Fixes bug #652
Modified: trunk/reactos/drivers/input/i8042prt/i8042prt.h
Modified: trunk/reactos/drivers/input/i8042prt/mouse.c
_____
Modified: trunk/reactos/drivers/input/i8042prt/i8042prt.h
--- trunk/reactos/drivers/input/i8042prt/i8042prt.h 2005-07-24
11:48:08 UTC (rev 16710)
+++ trunk/reactos/drivers/input/i8042prt/i8042prt.h 2005-07-24
11:59:28 UTC (rev 16711)
@@ -46,6 +46,8 @@
#define KEYBOARD_NUM_LOCK_ON 0x02
#define KEYBOARD_CAPS_LOCK_ON 0x04
+#define WHEEL_DELTA 120
+
/*-----------------------------------------------------
* DeviceExtension
* --------------------------------------------------*/
_____
Modified: trunk/reactos/drivers/input/i8042prt/mouse.c
--- trunk/reactos/drivers/input/i8042prt/mouse.c 2005-07-24
11:48:08 UTC (rev 16710)
+++ trunk/reactos/drivers/input/i8042prt/mouse.c 2005-07-24
11:59:28 UTC (rev 16711)
@@ -489,7 +489,7 @@
if (Scroll) {
MouseInput->RawButtons |= MOUSE_WHEEL;
- MouseInput->ButtonData = (USHORT) Scroll;
+ MouseInput->ButtonData = (USHORT)(Scroll *
-WHEEL_DELTA);
}
if (DevExt->MouseType == IntellimouseExplorer) {
Show replies by date