fixed a return value

svn path=/trunk/; revision=6359
This commit is contained in:
Thomas Bluemel 2003-10-18 19:18:41 +00:00
parent cf858e6be6
commit 87921d1868

View file

@ -101,16 +101,12 @@ ParsePackets(PDEVICE_EXTENSION DeviceExtension, PMOUSE_INPUT_DATA Input)
else
Input->LastX = 0;
//Input->LastX = (packet[1] ? (int) packet[1] - (int) ((packet[0] << 4) & 0x100) : 0);
/* Determine LastY */
if(packet[2])
Input->LastY = -((packet[0] & 0x20) ? (int)(packet[2] - 256) : (int) packet[2]);
else
Input->LastY = 0;
//Input->LastY = (packet[2] ? (int) ((packet[0] << 3) & 0x100) - (int) packet[2] : 0);
/* Copy RawButtons to Previous Buttons for Input */
DeviceExtension->PreviousButtons = Input->RawButtons;
@ -173,7 +169,7 @@ MouseHandler(PKINTERRUPT Interrupt, PVOID ServiceContext)
Input = &DeviceExtension->MouseInputData[Queue]
[DeviceExtension->InputDataCount[Queue]];
ParsePackets(DeviceExtension, Input);
ret = ParsePackets(DeviceExtension, Input);
/* Send the Input data to the Mouse Class driver */
DeviceExtension->InputDataCount[Queue]++;