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
f299b427
Commit
f299b427
authored
Sep 03, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xinput1_3: Use the internal WINEXINPUT device interface class.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b680794c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
dlls/xinput1_3/main.c
+3
-3
No files found.
dlls/xinput1_3/main.c
View file @
f299b427
...
...
@@ -43,6 +43,8 @@
#include "wine/debug.h"
DEFINE_GUID
(
GUID_DEVINTERFACE_WINEXINPUT
,
0x6c53d5fd
,
0x6480
,
0x440f
,
0xb6
,
0x18
,
0x47
,
0x67
,
0x50
,
0xc5
,
0xe1
,
0xa6
);
/* Not defined in the headers, used only by XInputGetStateEx */
#define XINPUT_GAMEPAD_GUIDE 0x0400
...
...
@@ -324,7 +326,7 @@ static void update_controller_list(void)
GUID
guid
;
int
i
;
HidD_GetHidGuid
(
&
guid
)
;
guid
=
GUID_DEVINTERFACE_WINEXINPUT
;
set
=
SetupDiGetClassDevsW
(
&
guid
,
NULL
,
NULL
,
DIGCF_DEVICEINTERFACE
|
DIGCF_PRESENT
);
detail
->
cbSize
=
sizeof
(
*
detail
);
...
...
@@ -335,8 +337,6 @@ static void update_controller_list(void)
if
(
!
SetupDiGetDeviceInterfaceDetailW
(
set
,
&
iface
,
detail
,
sizeof
(
buffer
),
NULL
,
NULL
))
continue
;
if
(
!
wcsstr
(
detail
->
DevicePath
,
L"IG_"
))
continue
;
if
(
find_opened_device
(
detail
,
&
i
))
continue
;
/* already opened */
if
(
i
==
XUSER_MAX_COUNT
)
break
;
/* no more slots */
...
...
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