diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c index 43cd946a93e..86418039156 100644 --- a/dlls/dinput/device.c +++ b/dlls/dinput/device.c @@ -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; } diff --git a/dlls/dinput/dinput_main.c b/dlls/dinput/dinput_main.c index 2638710131c..0424f72e16f 100644 --- a/dlls/dinput/dinput_main.c +++ b/dlls/dinput/dinput_main.c @@ -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;idwNumActions;i++) { + FIXME("diaf.rgoAction[%d]:\n", i); + FIXME("\tuAppData=%lx\n", lpdiActionFormat->rgoAction[i].uAppData); + FIXME("\tdwSemantics=%x\n", lpdiActionFormat->rgoAction[i].dwSemantics); + FIXME("\tdwFlags=%x\n", lpdiActionFormat->rgoAction[i].dwFlags); + FIXME("\tszActionName=%s\n", debugstr_a(lpdiActionFormat->rgoAction[i].lptszActionName)); + FIXME("\tguidInstance=%s\n", debugstr_guid(&lpdiActionFormat->rgoAction[i].guidInstance)); + FIXME("\tdwObjID=%x\n", lpdiActionFormat->rgoAction[i].dwObjID); + FIXME("\tdwHow=%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 */ diff --git a/dlls/dinput/dinput_private.h b/dlls/dinput/dinput_private.h index a9d12de967b..15783e2bb28 100644 --- a/dlls/dinput/dinput_private.h +++ b/dlls/dinput/dinput_private.h @@ -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 */