Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
30f307c4
Commit
30f307c4
authored
Jan 31, 2002
by
Nog
Committed by
Alexandre Julliard
Jan 31, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement function 0xb (Read mouse motion counters) and 0xf (Set
mickey/pixel ratio).
parent
001e732c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
int33.c
dlls/winedos/int33.c
+16
-0
No files found.
dlls/winedos/int33.c
View file @
30f307c4
...
...
@@ -22,6 +22,7 @@ static struct
WORD
lbcount
,
rbcount
,
rlastx
,
rlasty
,
llastx
,
llasty
;
FARPROC16
callback
;
WORD
callmask
;
WORD
VMPratio
,
HMPratio
,
oldx
,
oldy
;
}
mouse_info
;
/**********************************************************************
...
...
@@ -37,6 +38,9 @@ void WINAPI DOSVM_Int33Handler( CONTEXT86 *context )
AX_reg
(
context
)
=
0xFFFF
;
/* installed */
BX_reg
(
context
)
=
3
;
/* # of buttons */
memset
(
&
mouse_info
,
0
,
sizeof
(
mouse_info
)
);
/* Set the default mickey/pixel ratio */
mouse_info
.
HMPratio
=
8
;
mouse_info
.
VMPratio
=
16
;
break
;
case
0x01
:
FIXME
(
"Show mouse cursor
\n
"
);
...
...
@@ -81,11 +85,23 @@ void WINAPI DOSVM_Int33Handler( CONTEXT86 *context )
case
0x0A
:
FIXME
(
"Define text mouse cursor
\n
"
);
break
;
case
0x0B
:
TRACE
(
"Read Mouse motion counters
\n
"
);
CX_reg
(
context
)
=
(
mouse_info
.
x
-
mouse_info
.
oldx
)
*
(
mouse_info
.
HMPratio
/
8
);
DX_reg
(
context
)
=
(
mouse_info
.
y
-
mouse_info
.
oldy
)
*
(
mouse_info
.
VMPratio
/
8
);
mouse_info
.
oldx
=
mouse_info
.
x
;
mouse_info
.
oldy
=
mouse_info
.
y
;
break
;
case
0x0C
:
TRACE
(
"Define mouse interrupt subroutine
\n
"
);
mouse_info
.
callmask
=
CX_reg
(
context
);
mouse_info
.
callback
=
(
FARPROC16
)
MAKESEGPTR
(
context
->
SegEs
,
LOWORD
(
context
->
Edx
));
break
;
case
0x0F
:
TRACE
(
"Set mickey/pixel ratio
\n
"
);
mouse_info
.
HMPratio
=
CX_reg
(
context
);
mouse_info
.
VMPratio
=
DX_reg
(
context
);
break
;
case
0x10
:
FIXME
(
"Define screen region for update
\n
"
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment