Andrew Fenn : xinput1_3: Added stub code for XInputGetKeystroke.

Alexandre Julliard julliard at winehq.org
Wed Jan 7 10:56:59 CST 2009


Module: wine
Branch: master
Commit: ac3e24c5c934020a970f2f17138d25ec2de4c35e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ac3e24c5c934020a970f2f17138d25ec2de4c35e

Author: Andrew Fenn <andrewfenn at gmail.com>
Date:   Tue Jan  6 20:47:23 2009 +0700

xinput1_3: Added stub code for XInputGetKeystroke.

---

 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 7c71bd5..f2d961c 100644
--- a/dlls/xinput1_3/xinput1_3.spec
+++ b/dlls/xinput1_3/xinput1_3.spec
@@ -1,7 +1,7 @@
 @ stdcall XInputEnable(long)
 @ stdcall XInputSetState(long ptr)
 @ stdcall XInputGetState(long ptr)
-@ stub XInputGetKeystroke #(long long ptr)
+@ stdcall XInputGetKeystroke(long long ptr)
 @ stdcall XInputGetCapabilities(long long ptr)
 @ stub XInputGetDSoundAudioDeviceGuids #(long ptr ptr)
 @ stub XInputGetBatteryInformation
diff --git a/dlls/xinput1_3/xinput1_3_main.c b/dlls/xinput1_3/xinput1_3_main.c
index 7f28f37..636dcd1 100644
--- a/dlls/xinput1_3/xinput1_3_main.c
+++ b/dlls/xinput1_3/xinput1_3_main.c
@@ -79,6 +79,18 @@ DWORD WINAPI XInputGetState(DWORD dwUserIndex, XINPUT_STATE* pState)
     return ERROR_BAD_ARGUMENTS;
 }
 
+DWORD WINAPI XInputGetKeystroke(DWORD dwUserIndex, DWORD dwReserve, PXINPUT_KEYSTROKE pKeystroke)
+{
+    FIXME("(%d %d %p) Stub!\n", dwUserIndex, dwReserve, pKeystroke);
+
+    if (dwUserIndex < XUSER_MAX_COUNT)
+    {
+        return ERROR_DEVICE_NOT_CONNECTED;
+        /* If controller exists then return ERROR_SUCCESS */
+    }
+    return ERROR_BAD_ARGUMENTS;
+}
+
 DWORD WINAPI XInputGetCapabilities(DWORD dwUserIndex, DWORD dwFlags, XINPUT_CAPABILITIES* pCapabilities)
 {
     FIXME("(%d %d %p)\n", dwUserIndex, dwFlags, pCapabilities);




More information about the wine-cvs mailing list