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
565c2dcf
Commit
565c2dcf
authored
Aug 15, 2018
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Fix mac build.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27365695
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
joystick_osx.c
dlls/dinput/joystick_osx.c
+4
-1
No files found.
dlls/dinput/joystick_osx.c
View file @
565c2dcf
...
...
@@ -988,16 +988,19 @@ static HRESULT joydev_enum_deviceW(DWORD dwDevType, DWORD dwFlags, LPDIDEVICEINS
{
char
name
[
MAX_PATH
];
char
friendly
[
32
];
IOHIDDeviceRef
device
;
TRACE
(
"dwDevType %u dwFlags 0x%08x version 0x%04x id %d
\n
"
,
dwDevType
,
dwFlags
,
version
,
id
);
if
(
id
>=
find_joystick_devices
())
return
E_FAIL
;
device
=
get_device_ref
(
id
);
if
((
dwDevType
==
0
)
||
((
dwDevType
==
DIDEVTYPE_JOYSTICK
)
&&
(
version
>
0x0300
&&
version
<
0x0800
))
||
(((
dwDevType
==
DI8DEVCLASS_GAMECTRL
)
||
(
dwDevType
==
DI8DEVTYPE_JOYSTICK
))
&&
(
version
>=
0x0800
)))
{
if
(
dwFlags
&
DIEDFL_FORCEFEEDBACK
)
{
IOHIDDeviceRef
device
=
get_device_ref
(
id
);
if
(
!
device
)
return
S_FALSE
;
if
(
get_ff
(
device
,
NULL
)
!=
S_OK
)
...
...
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