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
1056c881
Commit
1056c881
authored
Dec 09, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Dec 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Fix processing of custom format.
parent
878d5cc0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
device.c
dlls/dinput/device.c
+5
-2
joystick_linux.c
dlls/dinput/joystick_linux.c
+0
-2
No files found.
dlls/dinput/device.c
View file @
1056c881
...
...
@@ -327,8 +327,8 @@ DataFormat *create_DataFormat(const DIDATAFORMAT *wine_format, LPCDIDATAFORMAT a
(
DIDFT_GETINSTANCE
(
asked_format
->
rgodf
[
j
].
dwType
)
==
DIDFT_GETINSTANCE
(
wine_format
->
rgodf
[
i
].
dwType
)))
&&
(
/* Then if the asked type matches the one Wine provides */
wine_format
->
rgodf
[
i
].
dwType
&
asked_format
->
rgodf
[
j
].
dwType
))
{
DIDFT_GETTYPE
(
asked_format
->
rgodf
[
j
].
dwType
)
&
wine_format
->
rgodf
[
i
].
dwType
))
{
done
[
j
]
=
1
;
TRACE
(
"Matching :
\n
"
);
...
...
@@ -1009,6 +1009,9 @@ HRESULT WINAPI IDirectInputDevice2AImpl_Escape(
HRESULT
WINAPI
IDirectInputDevice2AImpl_Poll
(
LPDIRECTINPUTDEVICE8A
iface
)
{
IDirectInputDevice2AImpl
*
This
=
(
IDirectInputDevice2AImpl
*
)
iface
;
if
(
!
This
->
acquired
)
return
DIERR_NOTACQUIRED
;
/* Because wine devices do not need to be polled, just return DI_NOEFFECT */
return
DI_NOEFFECT
;
}
...
...
dlls/dinput/joystick_linux.c
View file @
1056c881
...
...
@@ -113,7 +113,6 @@ struct JoystickImpl
int
axes
;
int
buttons
;
POV
povs
[
4
];
BOOL
overflow
;
};
static
GUID
DInput_Wine_Joystick_GUID
=
{
/* 9e573ed9-7734-11d2-8d4a-23903fb6bdf7 */
...
...
@@ -495,7 +494,6 @@ static HRESULT alloc_device(REFGUID rguid, const void *jvt, IDirectInputImpl *di
newDevice
->
base
.
lpVtbl
=
jvt
;
newDevice
->
base
.
ref
=
1
;
newDevice
->
dinput
=
dinput
;
newDevice
->
overflow
=
FALSE
;
CopyMemory
(
&
newDevice
->
base
.
guid
,
rguid
,
sizeof
(
*
rguid
));
InitializeCriticalSection
(
&
newDevice
->
base
.
crit
);
newDevice
->
base
.
crit
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)
"DINPUT_joystick"
;
...
...
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