dinput: BuildActionMap and SetActionMap stubs for generic joystick.
This commit is contained in:
parent
f196050f28
commit
dc044e156d
|
@ -426,6 +426,66 @@ HRESULT WINAPI JoystickAGenericImpl_GetDeviceState(LPDIRECTINPUTDEVICE8A iface,
|
|||
return JoystickWGenericImpl_GetDeviceState(IDirectInputDevice8W_from_impl(This), len, ptr);
|
||||
}
|
||||
|
||||
|
||||
HRESULT WINAPI JoystickWGenericImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface,
|
||||
LPDIACTIONFORMATW lpdiaf,
|
||||
LPCWSTR lpszUserName,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
FIXME("(%p)->(%p,%s,%08x): semi-stub !\n", iface, lpdiaf, debugstr_w(lpszUserName), dwFlags);
|
||||
|
||||
return DI_NOEFFECT;
|
||||
}
|
||||
|
||||
HRESULT WINAPI JoystickAGenericImpl_BuildActionMap(LPDIRECTINPUTDEVICE8A iface,
|
||||
LPDIACTIONFORMATA lpdiaf,
|
||||
LPCSTR lpszUserName,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
JoystickGenericImpl *This = impl_from_IDirectInputDevice8A(iface);
|
||||
DIACTIONFORMATW diafW;
|
||||
HRESULT hr;
|
||||
|
||||
diafW.rgoAction = HeapAlloc(GetProcessHeap(), 0, sizeof(DIACTIONW)*lpdiaf->dwNumActions);
|
||||
_copy_diactionformatAtoW(&diafW, lpdiaf);
|
||||
|
||||
hr = JoystickWGenericImpl_BuildActionMap(&This->base.IDirectInputDevice8W_iface, &diafW, NULL, dwFlags);
|
||||
|
||||
_copy_diactionformatWtoA(lpdiaf, &diafW);
|
||||
HeapFree(GetProcessHeap(), 0, diafW.rgoAction);
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
HRESULT WINAPI JoystickWGenericImpl_SetActionMap(LPDIRECTINPUTDEVICE8W iface,
|
||||
LPDIACTIONFORMATW lpdiaf,
|
||||
LPCWSTR lpszUserName,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
FIXME("(%p)->(%p,%s,%08x): semi-stub !\n", iface, lpdiaf, debugstr_w(lpszUserName), dwFlags);
|
||||
|
||||
return DI_NOEFFECT;
|
||||
}
|
||||
|
||||
HRESULT WINAPI JoystickAGenericImpl_SetActionMap(LPDIRECTINPUTDEVICE8A iface,
|
||||
LPDIACTIONFORMATA lpdiaf,
|
||||
LPCSTR lpszUserName,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
JoystickGenericImpl *This = impl_from_IDirectInputDevice8A(iface);
|
||||
DIACTIONFORMATW diafW;
|
||||
HRESULT hr;
|
||||
|
||||
diafW.rgoAction = HeapAlloc(GetProcessHeap(), 0, sizeof(DIACTIONW)*lpdiaf->dwNumActions);
|
||||
_copy_diactionformatAtoW(&diafW, lpdiaf);
|
||||
|
||||
hr = JoystickWGenericImpl_SetActionMap(&This->base.IDirectInputDevice8W_iface, &diafW, NULL, dwFlags);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, diafW.rgoAction);
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
/*
|
||||
* This maps the read value (from the input event) to a value in the
|
||||
* 'wanted' range.
|
||||
|
|
|
@ -682,8 +682,8 @@ static const IDirectInputDevice8AVtbl JoystickAvt =
|
|||
IDirectInputDevice2AImpl_SendDeviceData,
|
||||
IDirectInputDevice7AImpl_EnumEffectsInFile,
|
||||
IDirectInputDevice7AImpl_WriteEffectToFile,
|
||||
IDirectInputDevice8AImpl_BuildActionMap,
|
||||
IDirectInputDevice8AImpl_SetActionMap,
|
||||
JoystickAGenericImpl_BuildActionMap,
|
||||
JoystickAGenericImpl_SetActionMap,
|
||||
IDirectInputDevice8AImpl_GetImageInfo
|
||||
};
|
||||
|
||||
|
@ -718,8 +718,8 @@ static const IDirectInputDevice8WVtbl JoystickWvt =
|
|||
IDirectInputDevice2WImpl_SendDeviceData,
|
||||
IDirectInputDevice7WImpl_EnumEffectsInFile,
|
||||
IDirectInputDevice7WImpl_WriteEffectToFile,
|
||||
IDirectInputDevice8WImpl_BuildActionMap,
|
||||
IDirectInputDevice8WImpl_SetActionMap,
|
||||
JoystickWGenericImpl_BuildActionMap,
|
||||
JoystickWGenericImpl_SetActionMap,
|
||||
IDirectInputDevice8WImpl_GetImageInfo
|
||||
};
|
||||
|
||||
|
|
|
@ -1417,8 +1417,8 @@ static const IDirectInputDevice8AVtbl JoystickAvt =
|
|||
IDirectInputDevice2AImpl_SendDeviceData,
|
||||
IDirectInputDevice7AImpl_EnumEffectsInFile,
|
||||
IDirectInputDevice7AImpl_WriteEffectToFile,
|
||||
IDirectInputDevice8AImpl_BuildActionMap,
|
||||
IDirectInputDevice8AImpl_SetActionMap,
|
||||
JoystickAGenericImpl_BuildActionMap,
|
||||
JoystickAGenericImpl_SetActionMap,
|
||||
IDirectInputDevice8AImpl_GetImageInfo
|
||||
};
|
||||
|
||||
|
@ -1453,8 +1453,8 @@ static const IDirectInputDevice8WVtbl JoystickWvt =
|
|||
IDirectInputDevice2WImpl_SendDeviceData,
|
||||
IDirectInputDevice7WImpl_EnumEffectsInFile,
|
||||
IDirectInputDevice7WImpl_WriteEffectToFile,
|
||||
IDirectInputDevice8WImpl_BuildActionMap,
|
||||
IDirectInputDevice8WImpl_SetActionMap,
|
||||
JoystickWGenericImpl_BuildActionMap,
|
||||
JoystickWGenericImpl_SetActionMap,
|
||||
IDirectInputDevice8WImpl_GetImageInfo
|
||||
};
|
||||
|
||||
|
|
|
@ -972,8 +972,8 @@ static const IDirectInputDevice8AVtbl JoystickAvt =
|
|||
IDirectInputDevice2AImpl_SendDeviceData,
|
||||
IDirectInputDevice7AImpl_EnumEffectsInFile,
|
||||
IDirectInputDevice7AImpl_WriteEffectToFile,
|
||||
IDirectInputDevice8AImpl_BuildActionMap,
|
||||
IDirectInputDevice8AImpl_SetActionMap,
|
||||
JoystickAGenericImpl_BuildActionMap,
|
||||
JoystickAGenericImpl_SetActionMap,
|
||||
IDirectInputDevice8AImpl_GetImageInfo
|
||||
};
|
||||
|
||||
|
@ -1008,8 +1008,8 @@ static const IDirectInputDevice8WVtbl JoystickWvt =
|
|||
IDirectInputDevice2WImpl_SendDeviceData,
|
||||
IDirectInputDevice7WImpl_EnumEffectsInFile,
|
||||
IDirectInputDevice7WImpl_WriteEffectToFile,
|
||||
IDirectInputDevice8WImpl_BuildActionMap,
|
||||
IDirectInputDevice8WImpl_SetActionMap,
|
||||
JoystickWGenericImpl_BuildActionMap,
|
||||
JoystickWGenericImpl_SetActionMap,
|
||||
IDirectInputDevice8WImpl_GetImageInfo
|
||||
};
|
||||
|
||||
|
|
|
@ -86,4 +86,10 @@ HRESULT WINAPI JoystickWGenericImpl_Poll(LPDIRECTINPUTDEVICE8W iface) DECLSPEC_H
|
|||
HRESULT WINAPI JoystickAGenericImpl_GetDeviceState(LPDIRECTINPUTDEVICE8A iface, DWORD len, LPVOID ptr) DECLSPEC_HIDDEN;
|
||||
HRESULT WINAPI JoystickWGenericImpl_GetDeviceState(LPDIRECTINPUTDEVICE8W iface, DWORD len, LPVOID ptr) DECLSPEC_HIDDEN;
|
||||
|
||||
HRESULT WINAPI JoystickAGenericImpl_BuildActionMap(LPDIRECTINPUTDEVICE8A iface, LPDIACTIONFORMATA lpdiaf, LPCSTR lpszUserName, DWORD dwFlags) DECLSPEC_HIDDEN;
|
||||
HRESULT WINAPI JoystickWGenericImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface, LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags) DECLSPEC_HIDDEN;
|
||||
|
||||
HRESULT WINAPI JoystickAGenericImpl_SetActionMap(LPDIRECTINPUTDEVICE8A iface, LPDIACTIONFORMATA lpdiaf, LPCSTR lpszUserName, DWORD dwFlags) DECLSPEC_HIDDEN;
|
||||
HRESULT WINAPI JoystickWGenericImpl_SetActionMap(LPDIRECTINPUTDEVICE8W iface, LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags) DECLSPEC_HIDDEN;
|
||||
|
||||
#endif /* __WINE_DLLS_DINPUT_JOYSTICK_PRIVATE_H */
|
||||
|
|
Loading…
Reference in New Issue