Patch by Andrey Korotaev <[email protected]>: Fix scrolling with mouse

This multiplication was deleted when replacing old psaux driver by i8042prt
Fixes bug #652

svn path=/trunk/; revision=16711
This commit is contained in:
Hervé Poussineau
2005-07-24 11:59:28 +00:00
parent 2763e3353b
commit 07d3247011
2 changed files with 3 additions and 1 deletions
@@ -46,6 +46,8 @@ typedef struct _CONNECT_DATA {
#define KEYBOARD_NUM_LOCK_ON 0x02
#define KEYBOARD_CAPS_LOCK_ON 0x04
#define WHEEL_DELTA 120
/*-----------------------------------------------------
* DeviceExtension
* --------------------------------------------------*/
+1 -1
View File
@@ -489,7 +489,7 @@ VOID STDCALL I8042MouseHandle(PDEVICE_EXTENSION DevExt,
if (Scroll) {
MouseInput->RawButtons |= MOUSE_WHEEL;
MouseInput->ButtonData = (USHORT) Scroll;
MouseInput->ButtonData = (USHORT)(Scroll * -WHEEL_DELTA);
}
if (DevExt->MouseType == IntellimouseExplorer) {