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
a1129ed2
Commit
a1129ed2
authored
Dec 10, 2023
by
Etaash Mathamsetty
Committed by
Alexandre Julliard
Jan 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xinput: Reimplement XInputGetCapabilities.
parent
aea79184
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
main.c
dlls/xinput1_3/main.c
+5
-16
No files found.
dlls/xinput1_3/main.c
View file @
a1129ed2
...
@@ -1086,25 +1086,14 @@ DWORD WINAPI DECLSPEC_HOTPATCH XInputGetKeystroke(DWORD index, DWORD reserved, P
...
@@ -1086,25 +1086,14 @@ DWORD WINAPI DECLSPEC_HOTPATCH XInputGetKeystroke(DWORD index, DWORD reserved, P
DWORD
WINAPI
DECLSPEC_HOTPATCH
XInputGetCapabilities
(
DWORD
index
,
DWORD
flags
,
XINPUT_CAPABILITIES
*
capabilities
)
DWORD
WINAPI
DECLSPEC_HOTPATCH
XInputGetCapabilities
(
DWORD
index
,
DWORD
flags
,
XINPUT_CAPABILITIES
*
capabilities
)
{
{
TRACE
(
"index %lu, flags %#lx, capabilities %p.
\n
"
,
index
,
flags
,
capabilities
);
XINPUT_CAPABILITIES_EX
caps_ex
;
DWORD
ret
;
start_update_thread
();
if
(
index
>=
XUSER_MAX_COUNT
)
return
ERROR_BAD_ARGUMENTS
;
if
(
!
controller_lock
(
&
controllers
[
index
]))
return
ERROR_DEVICE_NOT_CONNECTED
;
if
(
flags
&
XINPUT_FLAG_GAMEPAD
&&
controllers
[
index
].
caps
.
SubType
!=
XINPUT_DEVSUBTYPE_GAMEPAD
)
{
controller_unlock
(
&
controllers
[
index
]);
return
ERROR_DEVICE_NOT_CONNECTED
;
}
memcpy
(
capabilities
,
&
controllers
[
index
].
caps
,
sizeof
(
*
capabilities
)
);
ret
=
XInputGetCapabilitiesEx
(
1
,
index
,
flags
,
&
caps_ex
);
controller_unlock
(
&
controllers
[
index
])
;
if
(
!
ret
)
*
capabilities
=
caps_ex
.
Capabilities
;
return
ERROR_SUCCESS
;
return
ret
;
}
}
DWORD
WINAPI
DECLSPEC_HOTPATCH
XInputGetDSoundAudioDeviceGuids
(
DWORD
index
,
GUID
*
render_guid
,
GUID
*
capture_guid
)
DWORD
WINAPI
DECLSPEC_HOTPATCH
XInputGetDSoundAudioDeviceGuids
(
DWORD
index
,
GUID
*
render_guid
,
GUID
*
capture_guid
)
...
...
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