xinput1_3: Added stub XInputSetState.

This commit is contained in:
Andrew Fenn 2009-01-01 08:05:16 +07:00 committed by Alexandre Julliard
parent 954820d027
commit 2e71742d6a
2 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,5 @@
@ stdcall XInputEnable(long)
@ stub XInputSetState #(long ptr)
@ stdcall XInputSetState(long ptr)
@ stdcall XInputGetState(long ptr)
@ stub XInputGetKeystroke #(long long ptr)
@ stdcall XInputGetCapabilities(long long ptr)

View File

@ -55,6 +55,18 @@ void WINAPI XInputEnable(BOOL enable)
FIXME("(%d) Stub!\n", enable);
}
DWORD WINAPI XInputSetState(DWORD dwUserIndex, XINPUT_VIBRATION* pVibration)
{
FIXME("(%d %p) Stub!\n", dwUserIndex, pVibration);
if (dwUserIndex < XUSER_MAX_COUNT)
{
return ERROR_DEVICE_NOT_CONNECTED;
/* If controller exists then return ERROR_SUCCESS */
}
return ERROR_BAD_ARGUMENTS;
}
DWORD WINAPI XInputGetState(DWORD dwUserIndex, XINPUT_STATE* pState)
{
FIXME("(%u %p)\n", dwUserIndex, pState);