mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[MOUHID]
- Multiple the scroll value by WHEEL_DELTA (120) like i8042prt does - Scrolling with USB mice works now - Disable debugging svn path=/branches/usb-bringup-trunk/; revision=55191
This commit is contained in:
parent
270bb180e0
commit
36ad09a7b5
2 changed files with 4 additions and 3 deletions
|
@ -219,15 +219,15 @@ MouHid_ReadCompletion(
|
|||
{
|
||||
/* store wheel status */
|
||||
MouseInputData.ButtonFlags |= MOUSE_WHEEL;
|
||||
MouseInputData.ButtonData = (USHORT)UsageValue; /* FIXME */
|
||||
MouseInputData.ButtonData = (USHORT)(UsageValue * WHEEL_DELTA);
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINT1("[MOUHID] failed to get wheel status with %x\n", Status);
|
||||
DPRINT("[MOUHID] failed to get wheel status with %x\n", Status);
|
||||
}
|
||||
}
|
||||
|
||||
DPRINT1("[MOUHID] LastX %ld LastY %ld Flags %x ButtonData %x\n", MouseInputData.LastX, MouseInputData.LastY, MouseInputData.ButtonFlags, MouseInputData.ButtonData);
|
||||
DPRINT("[MOUHID] LastX %ld LastY %ld Flags %x ButtonData %x\n", MouseInputData.LastX, MouseInputData.LastY, MouseInputData.ButtonFlags, MouseInputData.ButtonData);
|
||||
|
||||
/* dispatch mouse action */
|
||||
MouHid_DispatchInputData(DeviceExtension, &MouseInputData);
|
||||
|
|
|
@ -110,6 +110,7 @@ typedef struct
|
|||
|
||||
}MOUHID_DEVICE_EXTENSION, *PMOUHID_DEVICE_EXTENSION;
|
||||
|
||||
#define WHEEL_DELTA 120
|
||||
|
||||
NTSTATUS
|
||||
MouHid_InitiateRead(
|
||||
|
|
Loading…
Reference in a new issue