mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
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:
@@ -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
|
||||
* --------------------------------------------------*/
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user