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
9ce27fc7
Commit
9ce27fc7
authored
Feb 15, 2008
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Add a dumper for LPDIACTIONFORMAT.
Also make the DINPUT_instance static.
parent
973c2971
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
4 deletions
+33
-4
device.c
dlls/dinput/device.c
+1
-1
dinput_main.c
dlls/dinput/dinput_main.c
+30
-1
dinput_private.h
dlls/dinput/dinput_private.h
+2
-2
No files found.
dlls/dinput/device.c
View file @
9ce27fc7
...
...
@@ -1339,7 +1339,7 @@ HRESULT WINAPI IDirectInputDevice8AImpl_BuildActionMap(LPDIRECTINPUTDEVICE8A ifa
DWORD
dwFlags
)
{
FIXME
(
"(%p)->(%p,%s,%08x): stub !
\n
"
,
iface
,
lpdiaf
,
lpszUserName
,
dwFlags
);
_dump_diactionformatA
(
lpdiaf
);
return
DI_OK
;
}
...
...
dlls/dinput/dinput_main.c
View file @
9ce27fc7
...
...
@@ -82,7 +82,7 @@ static const struct dinput_device *dinput_devices[] =
};
#define NB_DINPUT_DEVICES (sizeof(dinput_devices)/sizeof(dinput_devices[0]))
HINSTANCE
DINPUT_instance
=
NULL
;
static
HINSTANCE
DINPUT_instance
=
NULL
;
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserv
)
{
...
...
@@ -210,6 +210,35 @@ static void _dump_EnumDevices_dwFlags(DWORD dwFlags) {
TRACE
(
"
\n
"
);
}
void
_dump_diactionformatA
(
LPDIACTIONFORMATA
lpdiActionFormat
)
{
int
i
;
FIXME
(
"diaf.dwSize = %d
\n
"
,
lpdiActionFormat
->
dwSize
);
FIXME
(
"diaf.dwActionSize = %d
\n
"
,
lpdiActionFormat
->
dwActionSize
);
FIXME
(
"diaf.dwDataSize = %d
\n
"
,
lpdiActionFormat
->
dwDataSize
);
FIXME
(
"diaf.dwNumActions = %d
\n
"
,
lpdiActionFormat
->
dwNumActions
);
FIXME
(
"diaf.rgoAction = %p
\n
"
,
lpdiActionFormat
->
rgoAction
);
for
(
i
=
0
;
i
<
lpdiActionFormat
->
dwNumActions
;
i
++
)
{
FIXME
(
"diaf.rgoAction[%d]:
\n
"
,
i
);
FIXME
(
"
\t
uAppData=%lx
\n
"
,
lpdiActionFormat
->
rgoAction
[
i
].
uAppData
);
FIXME
(
"
\t
dwSemantics=%x
\n
"
,
lpdiActionFormat
->
rgoAction
[
i
].
dwSemantics
);
FIXME
(
"
\t
dwFlags=%x
\n
"
,
lpdiActionFormat
->
rgoAction
[
i
].
dwFlags
);
FIXME
(
"
\t
szActionName=%s
\n
"
,
debugstr_a
(
lpdiActionFormat
->
rgoAction
[
i
].
lptszActionName
));
FIXME
(
"
\t
guidInstance=%s
\n
"
,
debugstr_guid
(
&
lpdiActionFormat
->
rgoAction
[
i
].
guidInstance
));
FIXME
(
"
\t
dwObjID=%x
\n
"
,
lpdiActionFormat
->
rgoAction
[
i
].
dwObjID
);
FIXME
(
"
\t
dwHow=%x
\n
"
,
lpdiActionFormat
->
rgoAction
[
i
].
dwHow
);
}
FIXME
(
"diaf.guidActionMap = %s
\n
"
,
debugstr_guid
(
&
lpdiActionFormat
->
guidActionMap
));
FIXME
(
"diaf.dwGenre = %d
\n
"
,
lpdiActionFormat
->
dwGenre
);
FIXME
(
"diaf.dwBufferSize = %d
\n
"
,
lpdiActionFormat
->
dwBufferSize
);
FIXME
(
"diaf.lAxisMin = %d
\n
"
,
lpdiActionFormat
->
lAxisMin
);
FIXME
(
"diaf.lAxisMax = %d
\n
"
,
lpdiActionFormat
->
lAxisMax
);
FIXME
(
"diaf.hInstString = %p
\n
"
,
lpdiActionFormat
->
hInstString
);
FIXME
(
"diaf.ftTimeStamp ...
\n
"
);
FIXME
(
"diaf.dwCRC = %x
\n
"
,
lpdiActionFormat
->
dwCRC
);
FIXME
(
"diaf.tszActionMap = %s
\n
"
,
debugstr_a
(
lpdiActionFormat
->
tszActionMap
));
}
/******************************************************************************
* IDirectInputA_EnumDevices
*/
...
...
dlls/dinput/dinput_private.h
View file @
9ce27fc7
...
...
@@ -59,9 +59,9 @@ extern const struct dinput_device keyboard_device;
extern
const
struct
dinput_device
joystick_linux_device
;
extern
const
struct
dinput_device
joystick_linuxinput_device
;
extern
HINSTANCE
DINPUT_instance
;
extern
void
check_dinput_hooks
(
LPDIRECTINPUTDEVICE8A
);
typedef
void
(
*
DI_EVENT_PROC
)(
LPDIRECTINPUTDEVICE8A
,
WPARAM
,
LPARAM
);
extern
void
_dump_diactionformatA
(
LPDIACTIONFORMATA
);
#endif
/* __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H */
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