Andrew Fenn : xinput1_3: Added stub XInputSetState.
Alexandre Julliard
julliard at winehq.org
Fri Jan 2 08:25:43 CST 2009
Module: wine
Branch: master
Commit: 2e71742d6a30800094af9263693befdc9c423a7d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e71742d6a30800094af9263693befdc9c423a7d
Author: Andrew Fenn <andrewfenn at gmail.com>
Date: Thu Jan 1 08:05:16 2009 +0700
xinput1_3: Added stub XInputSetState.
---
dlls/xinput1_3/xinput1_3.spec | 2 +-
dlls/xinput1_3/xinput1_3_main.c | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/dlls/xinput1_3/xinput1_3.spec b/dlls/xinput1_3/xinput1_3.spec
index e8e176e..7c71bd5 100644
--- a/dlls/xinput1_3/xinput1_3.spec
+++ b/dlls/xinput1_3/xinput1_3.spec
@@ -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)
diff --git a/dlls/xinput1_3/xinput1_3_main.c b/dlls/xinput1_3/xinput1_3_main.c
index 15ee4e3..7f28f37 100644
--- a/dlls/xinput1_3/xinput1_3_main.c
+++ b/dlls/xinput1_3/xinput1_3_main.c
@@ -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);
More information about the wine-cvs
mailing list