mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[MOUHID]
- Only set the MOUSE_WHEEL flag if the wheel data is non-zero svn path=/branches/usb-bringup-trunk/; revision=55190
This commit is contained in:
parent
c60ff01cc6
commit
270bb180e0
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ MouHid_ReadCompletion(
|
|||
/* get usage */
|
||||
UsageValue = 0;
|
||||
Status = HidP_GetScaledUsageValue(HidP_Input, HID_USAGE_PAGE_GENERIC, HIDP_LINK_COLLECTION_UNSPECIFIED, HID_USAGE_GENERIC_WHEEL, &UsageValue, DeviceExtension->PreparsedData, DeviceExtension->Report, DeviceExtension->ReportLength);
|
||||
if (Status == HIDP_STATUS_SUCCESS)
|
||||
if (Status == HIDP_STATUS_SUCCESS && UsageValue != 0)
|
||||
{
|
||||
/* store wheel status */
|
||||
MouseInputData.ButtonFlags |= MOUSE_WHEEL;
|
||||
|
|
Loading…
Reference in a new issue