Andrew Fenn : xinput: Added prototypes to header file.

Alexandre Julliard julliard at winehq.org
Mon Dec 29 08:47:52 CST 2008


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

Author: Andrew Fenn <andrewfenn at gmail.com>
Date:   Mon Dec 29 00:50:13 2008 +0700

xinput: Added prototypes to header file.

---

 include/xinput.h |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/include/xinput.h b/include/xinput.h
index 46fd0ac..24fbdb3 100644
--- a/include/xinput.h
+++ b/include/xinput.h
@@ -202,4 +202,38 @@ typedef struct _XINPUT_CAPABILITIES {
     XINPUT_VIBRATION Vibration;
 } XINPUT_CAPABILITIES, *PXINPUT_CAPABILITIES;
 
+/*
+ * Defines the structure for a joystick input event which is
+ * retrieved using the function XInputGetKeystroke
+ */
+typedef struct _XINPUT_KEYSTROKE {
+    WORD VirtualKey;
+    WCHAR Unicode;
+    WORD Flags;
+    BYTE UserIndex;
+    BYTE HidCode;
+} XINPUT_KEYSTROKE, *PXINPUT_KEYSTROKE;
+
+typedef struct _XINPUT_BATTERY_INFORMATION
+{
+    BYTE BatteryType;
+    BYTE BatteryLevel;
+} XINPUT_BATTERY_INFORMATION, *PXINPUT_BATTERY_INFORMATION;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void WINAPI XInputEnable(BOOL);
+DWORD WINAPI XInputSetState(DWORD, XINPUT_VIBRATION*);
+DWORD WINAPI XInputGetState(DWORD, XINPUT_STATE*);
+DWORD WINAPI XInputGetKeystroke(DWORD, DWORD, PXINPUT_KEYSTROKE);
+DWORD WINAPI XInputGetCapabilities(DWORD, DWORD, XINPUT_CAPABILITIES*);
+DWORD WINAPI XInputGetDSoundAudioDeviceGuids(DWORD, GUID*, GUID*);
+DWORD WINAPI XInputGetBatteryInformation(DWORD, BYTE, XINPUT_BATTERY_INFORMATION*);
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WINE_XINPUT_H */




More information about the wine-cvs mailing list