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
8339de07
Commit
8339de07
authored
Jan 26, 2017
by
Bruno Jesus
Committed by
Alexandre Julliard
Jan 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Simplify JoystickWImpl_Unacquire for Linux.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27f45684
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+4
-10
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
8339de07
...
...
@@ -88,6 +88,8 @@ HRESULT linuxinput_create_effect(int* fd, REFGUID rguid, struct list *parent_lis
HRESULT
linuxinput_get_info_A
(
int
fd
,
REFGUID
rguid
,
LPDIEFFECTINFOA
info
);
HRESULT
linuxinput_get_info_W
(
int
fd
,
REFGUID
rguid
,
LPDIEFFECTINFOW
info
);
static
HRESULT
WINAPI
JoystickWImpl_SendForceFeedbackCommand
(
LPDIRECTINPUTDEVICE8W
iface
,
DWORD
dwFlags
);
typedef
struct
JoystickImpl
JoystickImpl
;
static
const
IDirectInputDevice8AVtbl
JoystickAvt
;
static
const
IDirectInputDevice8WVtbl
JoystickWvt
;
...
...
@@ -745,18 +747,10 @@ static HRESULT WINAPI JoystickWImpl_Unacquire(LPDIRECTINPUTDEVICE8W iface)
TRACE
(
"(this=%p)
\n
"
,
This
);
res
=
IDirectInputDevice2WImpl_Unacquire
(
iface
);
if
(
res
==
DI_OK
&&
This
->
joyfd
!=-
1
)
{
effect_list_item
*
itr
;
struct
input_event
event
;
/* 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
);
}
/* Stop and unload all effects */
JoystickWImpl_SendForceFeedbackCommand
(
iface
,
DISFFC_RESET
);
/* Enable autocenter. */
event
.
type
=
EV_FF
;
...
...
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