Added mouse functions

This commit is contained in:
pagefault
2001-09-23 21:42:51 +00:00
parent ad1fbdebd3
commit 296d235dee
4 changed files with 34 additions and 42 deletions

View File

@@ -1137,42 +1137,36 @@ NEWSYM Get_MouseData ; Returns both pressed and coordinates
ret
NEWSYM Set_MouseXMax ; Sets the X boundaries (ecx = left, edx = right)
; pushad
; or ecx,0FFFh
; push ecx
; call SetMouseMinX
; pop ecx
; or edx,0FFFh
; push edx
; call SetMouseMaxX
; pop edx
; popad
pushad
push ecx
call SetMouseMinX
pop ecx
push edx
call SetMouseMaxX
pop edx
popad
ret
NEWSYM Set_MouseYMax ; Sets the Y boundaries (ecx = left, edx = right)
; pushad
; or ecx,0FFFh
; push ecx
; call SetMouseMinY
; pop ecx
; or edx,0FFFh
; push edx
; call SetMouseMaxY
; pop edx
; popad
pushad
push ecx
call SetMouseMinY
pop ecx
push edx
call SetMouseMaxY
pop edx
popad
ret
NEWSYM Set_MousePosition ; Sets Mouse Position (x:cx,y:dx)
; pushad
; or ecx,0FFFFh
; push ecx
; call SetMouseX
; pop ecx
; push edx
; or edx,0FFFFh
; call SetMouseY
; pop edx
; popad
pushad
push ecx
call SetMouseX
pop ecx
push edx
call SetMouseY
pop edx
popad
ret
NEWSYM Get_MousePositionDisplacement