Fixed labels in usbhid, no semantic changes.

git-svn-id: svn://kolibrios.org@4530 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2014-01-26 14:58:22 +00:00
parent 40cbd60db3
commit 0e1f1afeae

View File

@ -118,7 +118,7 @@ end if
; 3. This is x moving. For relative fields, store the value in the state.
; Pass absolute field to the default handler.
test byte [esi+report_field_group.flags], HID_FIELD_RELATIVE
jz .relative_x
jz .absolute_x
mov [edi+mouse_device_data.dx], edx
ret
.y:
@ -128,7 +128,7 @@ end if
; increasing from top to bottom.
; Pass absolute fields to the default handler.
test byte [esi+report_field_group.flags], HID_FIELD_RELATIVE
jz .relative_y
jz .absolute_y
neg edx
mov [edi+mouse_device_data.dy], edx
ret
@ -145,7 +145,7 @@ end if
jz .unclaimed
mov [edi+mouse_device_data.hwheel], edx
ret
.relative_x:
.absolute_x:
push ebx
mov eax, [screen_x]
mul edx
@ -155,7 +155,7 @@ end if
or [edi+mouse_device_data.buttons], 0x80000000
pop ebx
ret
.relative_y:
.absolute_y:
push ebx
mov eax, [screen_y]
mul edx