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
41be1096
Commit
41be1096
authored
Jan 21, 2009
by
Vincent Pelletier
Committed by
Alexandre Julliard
Jan 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: On Unacquire, stop all effects and unload them.
parent
a0c10c2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+12
-0
joystick.c
dlls/dinput/tests/joystick.c
+1
-1
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
41be1096
...
...
@@ -678,6 +678,18 @@ static HRESULT WINAPI JoystickAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
TRACE
(
"(this=%p)
\n
"
,
This
);
res
=
IDirectInputDevice2AImpl_Unacquire
(
iface
);
if
(
res
==
DI_OK
&&
This
->
joyfd
!=-
1
)
{
effect_list_item
*
itr
;
/* For each known effect:
* - stop it
* - unload it
* But, unlike DISFFC_RESET, do not release the effect.
*/
LIST_FOR_EACH_ENTRY
(
itr
,
&
This
->
ff_effects
,
effect_list_item
,
entry
)
{
IDirectInputEffect_Stop
(
itr
->
ref
);
IDirectInputEffect_Unload
(
itr
->
ref
);
}
close
(
This
->
joyfd
);
This
->
joyfd
=
-
1
;
}
...
...
dlls/dinput/tests/joystick.c
View file @
41be1096
...
...
@@ -387,7 +387,7 @@ static BOOL CALLBACK EnumJoysticks(
hr
=
IDirectInputDevice_Acquire
(
pJoystick
);
ok
(
hr
==
DI_OK
,
"IDirectInputDevice_Acquire() failed: %08x
\n
"
,
hr
);
hr
=
IDirectInputEffect_SetParameters
(
effect
,
&
eff
,
DIEP_GAIN
);
todo_wine
ok
(
hr
==
DI_OK
,
"IDirectInputEffect_SetParameters failed: %08x
\n
"
,
hr
);
ok
(
hr
==
DI_OK
,
"IDirectInputEffect_SetParameters failed: %08x
\n
"
,
hr
);
}
ref
=
IUnknown_Release
(
effect
);
ok
(
ref
==
0
,
"IDirectInputDevice_Release() reference count = %d
\n
"
,
ref
);
...
...
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