mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:12:56 +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 */
|
/* store wheel status */
|
||||||
MouseInputData.ButtonFlags |= MOUSE_WHEEL;
|
MouseInputData.ButtonFlags |= MOUSE_WHEEL;
|
||||||
MouseInputData.ButtonData = (USHORT)UsageValue; /* FIXME */
|
MouseInputData.ButtonData = (USHORT)(UsageValue * WHEEL_DELTA);
|
||||||
}
|
}
|
||||||
else
|
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 */
|
/* dispatch mouse action */
|
||||||
MouHid_DispatchInputData(DeviceExtension, &MouseInputData);
|
MouHid_DispatchInputData(DeviceExtension, &MouseInputData);
|
||||||
|
|
|
@ -110,6 +110,7 @@ typedef struct
|
||||||
|
|
||||||
}MOUHID_DEVICE_EXTENSION, *PMOUHID_DEVICE_EXTENSION;
|
}MOUHID_DEVICE_EXTENSION, *PMOUHID_DEVICE_EXTENSION;
|
||||||
|
|
||||||
|
#define WHEEL_DELTA 120
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
MouHid_InitiateRead(
|
MouHid_InitiateRead(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue