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
d3fb100c
Commit
d3fb100c
authored
Dec 07, 2004
by
Christian Costa
Committed by
Alexandre Julliard
Dec 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed enumeration of joysticks in DX8.
Fixed some traces.
parent
367d1693
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
dinput_main.c
dlls/dinput/dinput_main.c
+2
-2
joystick_linux.c
dlls/dinput/joystick_linux.c
+6
-2
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+6
-2
No files found.
dlls/dinput/dinput_main.c
View file @
d3fb100c
...
...
@@ -704,13 +704,13 @@ HRESULT WINAPI DINPUT_DllCanUnloadNow(void)
HRESULT
WINAPI
DINPUT_DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
)
{
TRACE
(
"(%
p,%p
,%p)
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
TRACE
(
"(%
s,%s
,%p)
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
if
(
IsEqualCLSID
(
&
IID_IClassFactory
,
riid
)
)
{
*
ppv
=
(
LPVOID
)
&
DINPUT_CF
;
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
}
FIXME
(
"(%
p,%p
,%p): no interface found.
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
FIXME
(
"(%
s,%s
,%p): no interface found.
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
return
CLASS_E_CLASSNOTAVAILABLE
;
}
dlls/dinput/joystick_linux.c
View file @
d3fb100c
...
...
@@ -157,7 +157,9 @@ static BOOL joydev_enum_deviceA(DWORD dwDevType, DWORD dwFlags, LPDIDEVICEINSTAN
return
FALSE
;
}
if
((
dwDevType
==
0
)
||
(
GET_DIDEVICE_TYPE
(
dwDevType
)
==
DIDEVTYPE_JOYSTICK
))
{
if
((
dwDevType
==
0
)
||
((
dwDevType
==
DIDEVTYPE_JOYSTICK
)
&&
(
version
<
8
))
||
((
dwDevType
==
DI8DEVTYPE_JOYSTICK
)
&&
(
version
>=
8
)))
{
/* check whether we have a joystick */
sprintf
(
dev
,
"%s%d"
,
JOYDEV
,
id
);
if
((
fd
=
open
(
dev
,
O_RDONLY
))
<
0
)
{
...
...
@@ -205,7 +207,9 @@ static BOOL joydev_enum_deviceW(DWORD dwDevType, DWORD dwFlags, LPDIDEVICEINSTAN
return
FALSE
;
}
if
((
dwDevType
==
0
)
||
(
GET_DIDEVICE_TYPE
(
dwDevType
)
==
DIDEVTYPE_JOYSTICK
))
{
if
((
dwDevType
==
0
)
||
((
dwDevType
==
DIDEVTYPE_JOYSTICK
)
&&
(
version
<
8
))
||
((
dwDevType
==
DI8DEVTYPE_JOYSTICK
)
&&
(
version
>=
8
)))
{
/* check whether we have a joystick */
sprintf
(
dev
,
"%s%d"
,
JOYDEV
,
id
);
if
((
fd
=
open
(
dev
,
O_RDONLY
))
<
0
)
{
...
...
dlls/dinput/joystick_linuxinput.c
View file @
d3fb100c
...
...
@@ -175,7 +175,9 @@ static BOOL joydev_enum_deviceA(DWORD dwDevType, DWORD dwFlags, LPDIDEVICEINSTAN
if
(
id
!=
0
)
return
FALSE
;
if
((
dwDevType
!=
0
)
&&
(
GET_DIDEVICE_TYPE
(
dwDevType
)
!=
DIDEVTYPE_JOYSTICK
))
if
(
!
((
dwDevType
==
0
)
||
((
dwDevType
==
DIDEVTYPE_JOYSTICK
)
&&
(
version
<
8
))
||
((
dwDevType
==
DI8DEVTYPE_JOYSTICK
)
&&
(
version
>=
8
))))
return
FALSE
;
if
(
dwFlags
&
DIEDFL_FORCEFEEDBACK
)
...
...
@@ -211,7 +213,9 @@ static BOOL joydev_enum_deviceW(DWORD dwDevType, DWORD dwFlags, LPDIDEVICEINSTAN
if
(
id
!=
0
)
return
FALSE
;
if
((
dwDevType
!=
0
)
&&
(
GET_DIDEVICE_TYPE
(
dwDevType
)
!=
DIDEVTYPE_JOYSTICK
))
if
(
!
((
dwDevType
==
0
)
||
((
dwDevType
==
DIDEVTYPE_JOYSTICK
)
&&
(
version
<
8
))
||
((
dwDevType
==
DI8DEVTYPE_JOYSTICK
)
&&
(
version
>=
8
))))
return
FALSE
;
if
(
dwFlags
&
DIEDFL_FORCEFEEDBACK
)
...
...
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