Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
42a314de
Commit
42a314de
authored
Jan 29, 2002
by
Nog
Committed by
Alexandre Julliard
Jan 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement function number 0x5 (Return mouse button press information).
parent
86e5efb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
int33.c
dlls/winedos/int33.c
+25
-1
No files found.
dlls/winedos/int33.c
View file @
42a314de
...
@@ -19,6 +19,7 @@ DEFAULT_DEBUG_CHANNEL(int);
...
@@ -19,6 +19,7 @@ DEFAULT_DEBUG_CHANNEL(int);
static
struct
static
struct
{
{
DWORD
x
,
y
,
but
;
DWORD
x
,
y
,
but
;
WORD
lbcount
,
rbcount
,
rlastx
,
rlasty
,
llastx
,
llasty
;
FARPROC16
callback
;
FARPROC16
callback
;
WORD
callmask
;
WORD
callmask
;
}
mouse_info
;
}
mouse_info
;
...
@@ -52,6 +53,22 @@ void WINAPI DOSVM_Int33Handler( CONTEXT86 *context )
...
@@ -52,6 +53,22 @@ void WINAPI DOSVM_Int33Handler( CONTEXT86 *context )
case
0x04
:
case
0x04
:
FIXME
(
"Position mouse cursor
\n
"
);
FIXME
(
"Position mouse cursor
\n
"
);
break
;
break
;
case
0x05
:
TRACE
(
"Return Mouse button press Information for %s mouse button
\n
"
,
BX_reg
(
context
)
?
"right"
:
"left"
);
if
(
BX_reg
(
context
))
{
BX_reg
(
context
)
=
mouse_info
.
rbcount
;
mouse_info
.
rbcount
=
0
;
CX_reg
(
context
)
=
mouse_info
.
rlastx
;
DX_reg
(
context
)
=
mouse_info
.
rlasty
;
}
else
{
BX_reg
(
context
)
=
mouse_info
.
lbcount
;
mouse_info
.
lbcount
=
0
;
CX_reg
(
context
)
=
mouse_info
.
llastx
;
DX_reg
(
context
)
=
mouse_info
.
llasty
;
}
AX_reg
(
context
)
=
mouse_info
.
but
;
break
;
case
0x07
:
case
0x07
:
FIXME
(
"Define horizontal mouse cursor range
\n
"
);
FIXME
(
"Define horizontal mouse cursor range
\n
"
);
break
;
break
;
...
@@ -106,7 +123,8 @@ void WINAPI DOSVM_Int33Message(UINT message,WPARAM wParam,LPARAM lParam)
...
@@ -106,7 +123,8 @@ void WINAPI DOSVM_Int33Message(UINT message,WPARAM wParam,LPARAM lParam)
if
(
!
VGA_GetMode
(
&
Height
,
&
Width
,
NULL
))
{
if
(
!
VGA_GetMode
(
&
Height
,
&
Width
,
NULL
))
{
/* may need to do some coordinate scaling */
/* may need to do some coordinate scaling */
SX
=
640
/
Width
;
if
(
Width
)
SX
=
640
/
Width
;
if
(
!
SX
)
SX
=
1
;
if
(
!
SX
)
SX
=
1
;
}
}
mouse_info
.
x
=
LOWORD
(
lParam
)
*
SX
;
mouse_info
.
x
=
LOWORD
(
lParam
)
*
SX
;
...
@@ -119,6 +137,9 @@ void WINAPI DOSVM_Int33Message(UINT message,WPARAM wParam,LPARAM lParam)
...
@@ -119,6 +137,9 @@ void WINAPI DOSVM_Int33Message(UINT message,WPARAM wParam,LPARAM lParam)
case
WM_LBUTTONDBLCLK
:
case
WM_LBUTTONDBLCLK
:
mouse_info
.
but
|=
0x01
;
mouse_info
.
but
|=
0x01
;
mask
|=
0x02
;
mask
|=
0x02
;
mouse_info
.
llastx
=
mouse_info
.
x
;
mouse_info
.
llasty
=
mouse_info
.
y
;
mouse_info
.
lbcount
++
;
break
;
break
;
case
WM_LBUTTONUP
:
case
WM_LBUTTONUP
:
mouse_info
.
but
&=
~
0x01
;
mouse_info
.
but
&=
~
0x01
;
...
@@ -128,6 +149,9 @@ void WINAPI DOSVM_Int33Message(UINT message,WPARAM wParam,LPARAM lParam)
...
@@ -128,6 +149,9 @@ void WINAPI DOSVM_Int33Message(UINT message,WPARAM wParam,LPARAM lParam)
case
WM_RBUTTONDBLCLK
:
case
WM_RBUTTONDBLCLK
:
mouse_info
.
but
|=
0x02
;
mouse_info
.
but
|=
0x02
;
mask
|=
0x08
;
mask
|=
0x08
;
mouse_info
.
rlastx
=
mouse_info
.
x
;
mouse_info
.
rlasty
=
mouse_info
.
y
;
mouse_info
.
rbcount
++
;
break
;
break
;
case
WM_RBUTTONUP
:
case
WM_RBUTTONUP
:
mouse_info
.
but
&=
~
0x02
;
mouse_info
.
but
&=
~
0x02
;
...
...
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