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
84b2d73d
Commit
84b2d73d
authored
Sep 17, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Sep 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Initialize default coop level. Invert logic in hook handler.
parent
58926591
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
mouse.c
dlls/dinput/mouse.c
+6
-9
No files found.
dlls/dinput/mouse.c
View file @
84b2d73d
...
...
@@ -264,6 +264,7 @@ static SysMouseImpl *alloc_device(REFGUID rguid, const void *mvt, IDirectInputIm
newDevice
->
wine_df
->
internal_format_size
=
Wine_InternalMouseFormat
.
dwDataSize
;
newDevice
->
wine_df
->
dt
=
NULL
;
newDevice
->
dinput
=
dinput
;
newDevice
->
dwCoopLevel
=
DISCL_NONEXCLUSIVE
|
DISCL_BACKGROUND
;
return
newDevice
;
}
...
...
@@ -424,7 +425,6 @@ static HRESULT WINAPI SysMouseAImpl_SetDataFormat(
/* low-level mouse hook */
static
LRESULT
CALLBACK
dinput_mouse_hook
(
int
code
,
WPARAM
wparam
,
LPARAM
lparam
)
{
LRESULT
ret
;
MSLLHOOKSTRUCT
*
hook
=
(
MSLLHOOKSTRUCT
*
)
lparam
;
SysMouseImpl
*
This
=
(
SysMouseImpl
*
)
current_lock
;
DWORD
dwCoop
;
...
...
@@ -544,14 +544,11 @@ static LRESULT CALLBACK dinput_mouse_hook( int code, WPARAM wparam, LPARAM lpara
LeaveCriticalSection
(
&
(
This
->
crit
));
if
(
dwCoop
&
DISCL_NONEXCLUSIVE
)
{
/* Pass the events down to previous handlers (e.g. win32 input) */
ret
=
CallNextHookEx
(
0
,
code
,
wparam
,
lparam
);
}
else
{
/* Ignore message */
ret
=
1
;
}
return
ret
;
/* Ignore message */
if
(
dwCoop
&
DISCL_EXCLUSIVE
)
return
1
;
/* Pass the events down to previous handlers (e.g. win32 input) */
return
CallNextHookEx
(
0
,
code
,
wparam
,
lparam
);
}
static
void
dinput_window_check
(
SysMouseImpl
*
This
)
{
...
...
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