Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
OIS
Commits
1607ee66
Commit
1607ee66
authored
Apr 14, 2011
by
Phillip Castaneda
Browse files
Fix xinput enumeration
parent
de0813bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/win32/Win32JoyStick.cpp
src/win32/Win32JoyStick.cpp
+1
-1
No files found.
src/win32/Win32JoyStick.cpp
View file @
1607ee66
...
@@ -645,7 +645,7 @@ void Win32JoyStick::CheckXInputDevices(JoyStickInfoList &joys)
...
@@ -645,7 +645,7 @@ void Win32JoyStick::CheckXInputDevices(JoyStickInfoList &joys)
DWORD
dwVidPid
=
MAKELONG
(
dwVid
,
dwPid
);
DWORD
dwVidPid
=
MAKELONG
(
dwVid
,
dwPid
);
for
(
JoyStickInfoList
::
iterator
i
=
joys
.
begin
();
i
!=
joys
.
end
();
++
i
)
for
(
JoyStickInfoList
::
iterator
i
=
joys
.
begin
();
i
!=
joys
.
end
();
++
i
)
{
{
if
(
dwVidPid
==
i
->
productGuid
.
Data1
)
if
(
!
i
->
isXInput
&&
dwVidPid
==
i
->
productGuid
.
Data1
)
{
{
i
->
isXInput
=
true
;
i
->
isXInput
=
true
;
i
->
xInputDev
=
xDevice
;
i
->
xInputDev
=
xDevice
;
...
...
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