Commit e2b882ac authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Added default data formats for c_dfDIJoystick and c_dfDIJoystick2.

Added object properties for more than one object. Added error checks for acquired. Default to using c_dfDIJoystick2 data format. Try to use user supplied data formats (only works if same as one of the defaults). Code cleanup, error checking and tracing added. Added support for up to 8 axis.
parent f3880a29
......@@ -7,6 +7,7 @@ IMPORTS = ole32 user32 advapi32 kernel32
EXTRALIBS = -ldxguid -luuid
C_SRCS = \
data_formats.c \
device.c \
dinput_main.c \
joystick_linux.c \
......
......@@ -108,7 +108,7 @@ void _dump_EnumObjects_flags(DWORD dwFlags) {
}
}
void _dump_DIPROPHEADER(DIPROPHEADER *diph) {
void _dump_DIPROPHEADER(LPCDIPROPHEADER diph) {
if (TRACE_ON(dinput)) {
DPRINTF(" - dwObj = 0x%08lx\n", diph->dwObj);
DPRINTF(" - dwHow = %s\n",
......
......@@ -88,7 +88,7 @@ extern BOOL DIEnumDevicesCallbackAtoW(LPCDIDEVICEOBJECTINSTANCEA, LPVOID);
/* Various debug tools */
extern void _dump_cooperativelevel_DI(DWORD dwFlags) ;
extern void _dump_EnumObjects_flags(DWORD dwFlags) ;
extern void _dump_DIPROPHEADER(DIPROPHEADER *diph) ;
extern void _dump_DIPROPHEADER(LPCDIPROPHEADER diph) ;
extern void _dump_OBJECTINSTANCEA(DIDEVICEOBJECTINSTANCEA *ddoi) ;
extern void _dump_OBJECTINSTANCEW(DIDEVICEOBJECTINSTANCEW *ddoi) ;
extern void _dump_DIDATAFORMAT(const DIDATAFORMAT *df) ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment