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