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
abade021
Commit
abade021
authored
Jan 05, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
Jan 05, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mouse events fix.
parent
8081e5a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
main.c
dlls/dinput/mouse/main.c
+11
-5
No files found.
dlls/dinput/mouse/main.c
View file @
abade021
...
...
@@ -108,6 +108,7 @@ struct SysMouseAImpl
LONG
prevX
,
prevY
;
LPMOUSE_EVENT_PROC
prev_handler
;
HWND
win
;
DWORD
dwCoopLevel
;
DWORD
win_centerX
,
win_centerY
;
LPDIDEVICEOBJECTDATA
data_queue
;
int
queue_pos
,
queue_len
;
...
...
@@ -259,6 +260,7 @@ static HRESULT WINAPI SysMouseAImpl_SetCooperativeLevel(
/* Store the window which asks for the mouse */
This
->
win
=
hwnd
;
This
->
dwCoopLevel
=
dwflags
;
return
0
;
}
...
...
@@ -350,8 +352,7 @@ static void WINAPI dinput_mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
(
posX
==
This
->
win_centerX
)
&&
(
posX
==
This
->
win_centerX
))
{
/* Warp has been done... */
This
->
need_warp
=
WARP_DONE
;
LeaveCriticalSection
(
&
(
This
->
crit
));
return
;
goto
end
;
}
/* Relative mouse input with absolute mouse event : the real fun starts here... */
...
...
@@ -426,8 +427,7 @@ static void WINAPI dinput_mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
}
}
else
{
ERR
(
"Mouse event not supported...
\n
"
);
LeaveCriticalSection
(
&
(
This
->
crit
));
return
;
goto
end
;
}
if
(
TRACE_ON
(
dinput
))
{
...
...
@@ -478,7 +478,13 @@ static void WINAPI dinput_mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
TRACE
(
"(X: %ld - Y: %ld L: %02x M: %02x R: %02x)
\n
"
,
This
->
m_state
.
lX
,
This
->
m_state
.
lY
,
This
->
m_state
.
rgbButtons
[
0
],
This
->
m_state
.
rgbButtons
[
2
],
This
->
m_state
.
rgbButtons
[
1
]);
end
:
if
(
This
->
dwCoopLevel
&
DISCL_NONEXCLUSIVE
)
{
/* pass the events down to previous handlers (e.g. win32 input) */
if
(
This
->
prev_handler
)
This
->
prev_handler
(
dwFlags
,
dx
,
dy
,
cButtons
,
dwExtraInfo
);
}
LeaveCriticalSection
(
&
(
This
->
crit
));
}
...
...
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