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
96d6a25f
Commit
96d6a25f
authored
Dec 18, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Make _dump_cooperativelevel_DI() and _dump_EnumDevices_dwFlags() more self-contained.
parent
745bd4f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
device.c
dlls/dinput/device.c
+1
-1
dinput_main.c
dlls/dinput/dinput_main.c
+4
-2
No files found.
dlls/dinput/device.c
View file @
96d6a25f
...
...
@@ -59,6 +59,7 @@ void _dump_cooperativelevel_DI(DWORD dwFlags) {
FE
(
DISCL_NOWINKEY
)
#undef FE
};
TRACE
(
" cooperative level : "
);
for
(
i
=
0
;
i
<
(
sizeof
(
flags
)
/
sizeof
(
flags
[
0
]));
i
++
)
if
(
flags
[
i
].
mask
&
dwFlags
)
TRACE
(
"%s "
,
flags
[
i
].
name
);
...
...
@@ -675,7 +676,6 @@ HRESULT WINAPI IDirectInputDevice2AImpl_SetCooperativeLevel(
IDirectInputDevice2AImpl
*
This
=
(
IDirectInputDevice2AImpl
*
)
iface
;
TRACE
(
"(%p) %p,0x%08x
\n
"
,
This
,
hwnd
,
dwflags
);
TRACE
(
" cooperative level : "
);
_dump_cooperativelevel_DI
(
dwflags
);
if
((
dwflags
&
(
DISCL_EXCLUSIVE
|
DISCL_NONEXCLUSIVE
))
==
0
||
...
...
dlls/dinput/dinput_main.c
View file @
96d6a25f
...
...
@@ -198,6 +198,7 @@ static void _dump_EnumDevices_dwFlags(DWORD dwFlags) {
FE
(
DIEDFL_INCLUDEPHANTOMS
)
#undef FE
};
TRACE
(
" flags: "
);
if
(
dwFlags
==
0
)
{
TRACE
(
"DIEDFL_ALLDEVICES"
);
return
;
...
...
@@ -206,6 +207,7 @@ static void _dump_EnumDevices_dwFlags(DWORD dwFlags) {
if
(
flags
[
i
].
mask
&
dwFlags
)
TRACE
(
"%s "
,
flags
[
i
].
name
);
}
TRACE
(
"
\n
"
);
}
/******************************************************************************
...
...
@@ -222,7 +224,7 @@ static HRESULT WINAPI IDirectInputAImpl_EnumDevices(
TRACE
(
"(this=%p,0x%04x '%s',%p,%p,%04x)
\n
"
,
This
,
dwDevType
,
_dump_DIDEVTYPE_value
(
dwDevType
),
lpCallback
,
pvRef
,
dwFlags
);
TRACE
(
" flags: "
);
_dump_EnumDevices_dwFlags
(
dwFlags
);
TRACE
(
"
\n
"
);
_dump_EnumDevices_dwFlags
(
dwFlags
);
for
(
i
=
0
;
i
<
NB_DINPUT_DEVICES
;
i
++
)
{
if
(
!
dinput_devices
[
i
]
->
enum_deviceA
)
continue
;
...
...
@@ -252,7 +254,7 @@ static HRESULT WINAPI IDirectInputWImpl_EnumDevices(
TRACE
(
"(this=%p,0x%04x '%s',%p,%p,%04x)
\n
"
,
This
,
dwDevType
,
_dump_DIDEVTYPE_value
(
dwDevType
),
lpCallback
,
pvRef
,
dwFlags
);
TRACE
(
" flags: "
);
_dump_EnumDevices_dwFlags
(
dwFlags
);
TRACE
(
"
\n
"
);
_dump_EnumDevices_dwFlags
(
dwFlags
);
for
(
i
=
0
;
i
<
NB_DINPUT_DEVICES
;
i
++
)
{
if
(
!
dinput_devices
[
i
]
->
enum_deviceW
)
continue
;
...
...
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