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
233b5f5b
Commit
233b5f5b
authored
May 09, 2005
by
Lionel Ulmer
Committed by
Alexandre Julliard
May 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Windows reports 0x80 on pressed buttons not 0xFF
- trace the events reported to the application
parent
4899a500
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
mouse.c
dlls/dinput/mouse.c
+11
-4
No files found.
dlls/dinput/mouse.c
View file @
233b5f5b
...
...
@@ -604,9 +604,9 @@ static HRESULT WINAPI SysMouseAImpl_Acquire(LPDIRECTINPUTDEVICE8A iface)
This
->
org_coords
=
point
;
}
This
->
m_state
.
lZ
=
0
;
This
->
m_state
.
rgbButtons
[
0
]
=
((
GetKeyState
(
VK_LBUTTON
)
&
0x80
)
?
0xFF
:
0x00
)
;
This
->
m_state
.
rgbButtons
[
1
]
=
((
GetKeyState
(
VK_RBUTTON
)
&
0x80
)
?
0xFF
:
0x00
)
;
This
->
m_state
.
rgbButtons
[
2
]
=
((
GetKeyState
(
VK_MBUTTON
)
&
0x80
)
?
0xFF
:
0x00
)
;
This
->
m_state
.
rgbButtons
[
0
]
=
GetKeyState
(
VK_LBUTTON
)
&
0x80
;
This
->
m_state
.
rgbButtons
[
1
]
=
GetKeyState
(
VK_RBUTTON
)
&
0x80
;
This
->
m_state
.
rgbButtons
[
2
]
=
GetKeyState
(
VK_MBUTTON
)
&
0x80
;
/* Install our mouse hook */
if
(
This
->
dwCoopLevel
&
DISCL_EXCLUSIVE
)
...
...
@@ -770,12 +770,19 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceData(LPDIRECTINPUTDEVICE8A iface,
}
if
(
len
)
TRACE
(
"Application retrieving %ld event(s)
.
\n
"
,
len
);
TRACE
(
"Application retrieving %ld event(s)
:
\n
"
,
len
);
*
entries
=
0
;
nqtail
=
This
->
queue_tail
;
while
(
len
)
{
/* Copy the buffered data into the application queue */
TRACE
(
" - queuing Offs:%2ld Data:%5ld TS:%8ld Seq:%8ld at address %p from queue tail %4d
\n
"
,
(
This
->
data_queue
)
->
dwOfs
,
(
This
->
data_queue
)
->
dwData
,
(
This
->
data_queue
)
->
dwTimeStamp
,
(
This
->
data_queue
)
->
dwSequence
,
(
char
*
)
dod
+
*
entries
*
dodsize
,
nqtail
);
memcpy
((
char
*
)
dod
+
*
entries
*
dodsize
,
This
->
data_queue
+
nqtail
,
dodsize
);
/* Advance position */
nqtail
++
;
...
...
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