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
dd9a30ba
Commit
dd9a30ba
authored
Dec 27, 2004
by
Neil Olver
Committed by
Alexandre Julliard
Dec 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The flag for a mouse button down in the structure returned by
GetDeviceState should be 0x80 (only the high bit set), not 0xff.
parent
5ad7d858
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mouse.c
dlls/dinput/mouse.c
+6
-6
No files found.
dlls/dinput/mouse.c
View file @
dd9a30ba
...
...
@@ -501,9 +501,9 @@ static LRESULT CALLBACK dinput_mouse_hook( int code, WPARAM wparam, LPARAM lpara
switch
(
wparam
)
{
case
WM_LBUTTONDOWN
:
GEN_EVENT
(
This
->
offset_array
[
WINE_MOUSE_L_POSITION
],
0x
FF
,
GEN_EVENT
(
This
->
offset_array
[
WINE_MOUSE_L_POSITION
],
0x
80
,
hook
->
time
,
This
->
dinput
->
evsequence
++
);
This
->
m_state
.
rgbButtons
[
0
]
=
0x
FF
;
This
->
m_state
.
rgbButtons
[
0
]
=
0x
80
;
break
;
case
WM_LBUTTONUP
:
GEN_EVENT
(
This
->
offset_array
[
WINE_MOUSE_L_POSITION
],
0x00
,
...
...
@@ -511,9 +511,9 @@ static LRESULT CALLBACK dinput_mouse_hook( int code, WPARAM wparam, LPARAM lpara
This
->
m_state
.
rgbButtons
[
0
]
=
0x00
;
break
;
case
WM_RBUTTONDOWN
:
GEN_EVENT
(
This
->
offset_array
[
WINE_MOUSE_R_POSITION
],
0x
FF
,
GEN_EVENT
(
This
->
offset_array
[
WINE_MOUSE_R_POSITION
],
0x
80
,
hook
->
time
,
This
->
dinput
->
evsequence
++
);
This
->
m_state
.
rgbButtons
[
1
]
=
0x
FF
;
This
->
m_state
.
rgbButtons
[
1
]
=
0x
80
;
break
;
case
WM_RBUTTONUP
:
GEN_EVENT
(
This
->
offset_array
[
WINE_MOUSE_R_POSITION
],
0x00
,
...
...
@@ -521,9 +521,9 @@ static LRESULT CALLBACK dinput_mouse_hook( int code, WPARAM wparam, LPARAM lpara
This
->
m_state
.
rgbButtons
[
1
]
=
0x00
;
break
;
case
WM_MBUTTONDOWN
:
GEN_EVENT
(
This
->
offset_array
[
WINE_MOUSE_M_POSITION
],
0x
FF
,
GEN_EVENT
(
This
->
offset_array
[
WINE_MOUSE_M_POSITION
],
0x
80
,
hook
->
time
,
This
->
dinput
->
evsequence
++
);
This
->
m_state
.
rgbButtons
[
2
]
=
0x
FF
;
This
->
m_state
.
rgbButtons
[
2
]
=
0x
80
;
break
;
case
WM_MBUTTONUP
:
GEN_EVENT
(
This
->
offset_array
[
WINE_MOUSE_M_POSITION
],
0x00
,
...
...
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