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
662d3322
Commit
662d3322
authored
Jul 08, 2011
by
Lucas Fialho Zawacki
Committed by
Alexandre Julliard
Jul 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Prevent EnumDevicesBySematics from enumerating keyboard and mouse as having force feedback.
parent
13421a21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
dinput_main.c
dlls/dinput/dinput_main.c
+4
-0
device.c
dlls/dinput8/tests/device.c
+2
-2
No files found.
dlls/dinput/dinput_main.c
View file @
662d3322
...
...
@@ -865,6 +865,8 @@ static HRESULT WINAPI IDirectInput8AImpl_EnumDevicesBySemantics(
didevi
.
dwSize
=
sizeof
(
didevi
);
if
(
dwFlags
&
DIEDBSFL_FORCEFEEDBACK
)
return
DI_OK
;
/* Enumerate keyboard and mouse */
for
(
i
=
0
;
i
<
sizeof
(
guids
)
/
sizeof
(
guids
[
0
]);
i
++
)
{
...
...
@@ -903,6 +905,8 @@ static HRESULT WINAPI IDirectInput8WImpl_EnumDevicesBySemantics(
didevi
.
dwSize
=
sizeof
(
didevi
);
if
(
dwFlags
&
DIEDBSFL_FORCEFEEDBACK
)
return
DI_OK
;
/* Enumerate keyboard and mouse */
for
(
i
=
0
;
i
<
sizeof
(
guids
)
/
sizeof
(
guids
[
0
]);
i
++
)
{
...
...
dlls/dinput8/tests/device.c
View file @
662d3322
...
...
@@ -263,8 +263,8 @@ static void test_action_mapping(void)
count
.
mouse
=
NULL
;
hr
=
IDirectInput8_EnumDevicesBySemantics
(
pDI
,
0
,
&
af
,
counting_callback
,
&
count
,
DIEDBSFL_FORCEFEEDBACK
);
ok
(
SUCCEEDED
(
hr
),
"EnumDevicesBySemantics failed hr=%08x
\n
"
,
hr
);
todo_wine
ok
(
count
.
keyboard
==
NULL
,
"Keyboard should not be enumerated when asking for forcefeedback
\n
"
);
todo_wine
ok
(
count
.
mouse
==
NULL
,
"Mouse should not be enumerated when asking for forcefeedback
\n
"
);
ok
(
count
.
keyboard
==
NULL
,
"Keyboard should not be enumerated when asking for forcefeedback
\n
"
);
ok
(
count
.
mouse
==
NULL
,
"Mouse should not be enumerated when asking for forcefeedback
\n
"
);
/* Enumerate available devices. That is devices with not owned by any user.
Before setting the action map for all devices we still have them available.
...
...
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