1 | /*
|
---|
2 | * Copyright (C) the Wine project
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_DINPUT_H
|
---|
29 | #define __WINE_DINPUT_H
|
---|
30 |
|
---|
31 | #define COM_NO_WINDOWS_H
|
---|
32 | #include <objbase.h>
|
---|
33 |
|
---|
34 | #ifndef DIRECTINPUT_VERSION
|
---|
35 | #define DIRECTINPUT_VERSION 0x0800
|
---|
36 | #endif
|
---|
37 |
|
---|
38 | /* Classes */
|
---|
39 | DEFINE_GUID(CLSID_DirectInput, 0x25E609E0,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
40 | DEFINE_GUID(CLSID_DirectInputDevice, 0x25E609E1,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
41 |
|
---|
42 | DEFINE_GUID(CLSID_DirectInput8, 0x25E609E4,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
43 | DEFINE_GUID(CLSID_DirectInputDevice8, 0x25E609E5,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
44 |
|
---|
45 | /* Interfaces */
|
---|
46 | DEFINE_GUID(IID_IDirectInputA, 0x89521360,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
47 | DEFINE_GUID(IID_IDirectInputW, 0x89521361,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
48 | DEFINE_GUID(IID_IDirectInput2A, 0x5944E662,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
49 | DEFINE_GUID(IID_IDirectInput2W, 0x5944E663,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
50 | DEFINE_GUID(IID_IDirectInput7A, 0x9A4CB684,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
|
---|
51 | DEFINE_GUID(IID_IDirectInput7W, 0x9A4CB685,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
|
---|
52 | DEFINE_GUID(IID_IDirectInput8A, 0xBF798030,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00);
|
---|
53 | DEFINE_GUID(IID_IDirectInput8W, 0xBF798031,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00);
|
---|
54 | DEFINE_GUID(IID_IDirectInputDeviceA, 0x5944E680,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
55 | DEFINE_GUID(IID_IDirectInputDeviceW, 0x5944E681,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
56 | DEFINE_GUID(IID_IDirectInputDevice2A, 0x5944E682,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
57 | DEFINE_GUID(IID_IDirectInputDevice2W, 0x5944E683,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
58 | DEFINE_GUID(IID_IDirectInputDevice7A, 0x57D7C6BC,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
|
---|
59 | DEFINE_GUID(IID_IDirectInputDevice7W, 0x57D7C6BD,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
|
---|
60 | DEFINE_GUID(IID_IDirectInputDevice8A, 0x54D41080,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79);
|
---|
61 | DEFINE_GUID(IID_IDirectInputDevice8W, 0x54D41081,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79);
|
---|
62 | DEFINE_GUID(IID_IDirectInputEffect, 0xE7E1F7C0,0x88D2,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
63 |
|
---|
64 | /* Predefined object types */
|
---|
65 | DEFINE_GUID(GUID_XAxis, 0xA36D02E0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
66 | DEFINE_GUID(GUID_YAxis, 0xA36D02E1,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
67 | DEFINE_GUID(GUID_ZAxis, 0xA36D02E2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
68 | DEFINE_GUID(GUID_RxAxis,0xA36D02F4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
69 | DEFINE_GUID(GUID_RyAxis,0xA36D02F5,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
70 | DEFINE_GUID(GUID_RzAxis,0xA36D02E3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
71 | DEFINE_GUID(GUID_Slider,0xA36D02E4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
72 | DEFINE_GUID(GUID_Button,0xA36D02F0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
73 | DEFINE_GUID(GUID_Key, 0x55728220,0xD33C,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
74 | DEFINE_GUID(GUID_POV, 0xA36D02F2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
75 | DEFINE_GUID(GUID_Unknown,0xA36D02F3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
76 |
|
---|
77 | /* Predefined product GUIDs */
|
---|
78 | DEFINE_GUID(GUID_SysMouse, 0x6F1D2B60,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
79 | DEFINE_GUID(GUID_SysKeyboard, 0x6F1D2B61,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
80 | DEFINE_GUID(GUID_Joystick, 0x6F1D2B70,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
81 | DEFINE_GUID(GUID_SysMouseEm, 0x6F1D2B80,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
82 | DEFINE_GUID(GUID_SysMouseEm2, 0x6F1D2B81,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
83 | DEFINE_GUID(GUID_SysKeyboardEm, 0x6F1D2B82,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
84 | DEFINE_GUID(GUID_SysKeyboardEm2,0x6F1D2B83,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
85 |
|
---|
86 | /* predefined forcefeedback effects */
|
---|
87 | DEFINE_GUID(GUID_ConstantForce, 0x13541C20,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
88 | DEFINE_GUID(GUID_RampForce, 0x13541C21,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
89 | DEFINE_GUID(GUID_Square, 0x13541C22,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
90 | DEFINE_GUID(GUID_Sine, 0x13541C23,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
91 | DEFINE_GUID(GUID_Triangle, 0x13541C24,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
92 | DEFINE_GUID(GUID_SawtoothUp, 0x13541C25,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
93 | DEFINE_GUID(GUID_SawtoothDown, 0x13541C26,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
94 | DEFINE_GUID(GUID_Spring, 0x13541C27,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
95 | DEFINE_GUID(GUID_Damper, 0x13541C28,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
96 | DEFINE_GUID(GUID_Inertia, 0x13541C29,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
97 | DEFINE_GUID(GUID_Friction, 0x13541C2A,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
98 | DEFINE_GUID(GUID_CustomForce, 0x13541C2B,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
99 |
|
---|
100 | typedef struct IDirectInputA *LPDIRECTINPUTA;
|
---|
101 | typedef struct IDirectInputW *LPDIRECTINPUTW;
|
---|
102 | typedef struct IDirectInput2A *LPDIRECTINPUT2A;
|
---|
103 | typedef struct IDirectInput2W *LPDIRECTINPUT2W;
|
---|
104 | typedef struct IDirectInput7A *LPDIRECTINPUT7A;
|
---|
105 | typedef struct IDirectInput7W *LPDIRECTINPUT7W;
|
---|
106 | typedef struct IDirectInput8A *LPDIRECTINPUT8A;
|
---|
107 | typedef struct IDirectInput8W *LPDIRECTINPUT8W;
|
---|
108 | typedef struct IDirectInputDeviceA *LPDIRECTINPUTDEVICEA;
|
---|
109 | typedef struct IDirectInputDeviceW *LPDIRECTINPUTDEVICEW;
|
---|
110 | typedef struct IDirectInputDevice2A *LPDIRECTINPUTDEVICE2A;
|
---|
111 | typedef struct IDirectInputDevice2W *LPDIRECTINPUTDEVICE2W;
|
---|
112 | typedef struct IDirectInputDevice7A *LPDIRECTINPUTDEVICE7A;
|
---|
113 | typedef struct IDirectInputDevice7W *LPDIRECTINPUTDEVICE7W;
|
---|
114 | typedef struct IDirectInputDevice8A *LPDIRECTINPUTDEVICE8A;
|
---|
115 | typedef struct IDirectInputDevice8W *LPDIRECTINPUTDEVICE8W;
|
---|
116 | typedef struct IDirectInputEffect *LPDIRECTINPUTEFFECT;
|
---|
117 | typedef struct SysKeyboardA *LPSYSKEYBOARDA;
|
---|
118 | typedef struct SysMouseA *LPSYSMOUSEA;
|
---|
119 |
|
---|
120 | #define IID_IDirectInput WINELIB_NAME_AW(IID_IDirectInput)
|
---|
121 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUT)
|
---|
122 | #define IID_IDirectInput2 WINELIB_NAME_AW(IID_IDirectInput2)
|
---|
123 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUT2)
|
---|
124 | #define IID_IDirectInput7 WINELIB_NAME_AW(IID_IDirectInput7)
|
---|
125 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUT7)
|
---|
126 | #define IID_IDirectInput8 WINELIB_NAME_AW(IID_IDirectInput8)
|
---|
127 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUT8)
|
---|
128 | #define IID_IDirectInputDevice WINELIB_NAME_AW(IID_IDirectInputDevice)
|
---|
129 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE)
|
---|
130 | #define IID_IDirectInputDevice2 WINELIB_NAME_AW(IID_IDirectInputDevice2)
|
---|
131 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE2)
|
---|
132 | #define IID_IDirectInputDevice7 WINELIB_NAME_AW(IID_IDirectInputDevice7)
|
---|
133 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE7)
|
---|
134 | #define IID_IDirectInputDevice8 WINELIB_NAME_AW(IID_IDirectInputDevice8)
|
---|
135 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE8)
|
---|
136 |
|
---|
137 | #define DI_OK S_OK
|
---|
138 | #define DI_NOTATTACHED S_FALSE
|
---|
139 | #define DI_BUFFEROVERFLOW S_FALSE
|
---|
140 | #define DI_PROPNOEFFECT S_FALSE
|
---|
141 | #define DI_NOEFFECT S_FALSE
|
---|
142 | #define DI_POLLEDDEVICE ((HRESULT)0x00000002L)
|
---|
143 | #define DI_DOWNLOADSKIPPED ((HRESULT)0x00000003L)
|
---|
144 | #define DI_EFFECTRESTARTED ((HRESULT)0x00000004L)
|
---|
145 | #define DI_TRUNCATED ((HRESULT)0x00000008L)
|
---|
146 | #define DI_TRUNCATEDANDRESTARTED ((HRESULT)0x0000000CL)
|
---|
147 |
|
---|
148 | #define DIERR_OLDDIRECTINPUTVERSION \
|
---|
149 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_OLD_WIN_VERSION)
|
---|
150 | #define DIERR_BETADIRECTINPUTVERSION \
|
---|
151 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_RMODE_APP)
|
---|
152 | #define DIERR_BADDRIVERVER \
|
---|
153 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BAD_DRIVER_LEVEL)
|
---|
154 | #define DIERR_DEVICENOTREG REGDB_E_CLASSNOTREG
|
---|
155 | #define DIERR_NOTFOUND \
|
---|
156 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND)
|
---|
157 | #define DIERR_OBJECTNOTFOUND \
|
---|
158 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND)
|
---|
159 | #define DIERR_INVALIDPARAM E_INVALIDARG
|
---|
160 | #define DIERR_NOINTERFACE E_NOINTERFACE
|
---|
161 | #define DIERR_GENERIC E_FAIL
|
---|
162 | #define DIERR_OUTOFMEMORY E_OUTOFMEMORY
|
---|
163 | #define DIERR_UNSUPPORTED E_NOTIMPL
|
---|
164 | #define DIERR_NOTINITIALIZED \
|
---|
165 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_NOT_READY)
|
---|
166 | #define DIERR_ALREADYINITIALIZED \
|
---|
167 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_ALREADY_INITIALIZED)
|
---|
168 | #define DIERR_NOAGGREGATION CLASS_E_NOAGGREGATION
|
---|
169 | #define DIERR_OTHERAPPHASPRIO E_ACCESSDENIED
|
---|
170 | #define DIERR_INPUTLOST \
|
---|
171 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_READ_FAULT)
|
---|
172 | #define DIERR_ACQUIRED \
|
---|
173 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BUSY)
|
---|
174 | #define DIERR_NOTACQUIRED \
|
---|
175 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_INVALID_ACCESS)
|
---|
176 | #define DIERR_READONLY E_ACCESSDENIED
|
---|
177 | #define DIERR_HANDLEEXISTS E_ACCESSDENIED
|
---|
178 | #ifndef E_PENDING
|
---|
179 | #define E_PENDING 0x8000000AL
|
---|
180 | #endif
|
---|
181 | #define DIERR_INSUFFICIENTPRIVS 0x80040200L
|
---|
182 | #define DIERR_DEVICEFULL 0x80040201L
|
---|
183 | #define DIERR_MOREDATA 0x80040202L
|
---|
184 | #define DIERR_NOTDOWNLOADED 0x80040203L
|
---|
185 | #define DIERR_HASEFFECTS 0x80040204L
|
---|
186 | #define DIERR_NOTEXCLUSIVEACQUIRED 0x80040205L
|
---|
187 | #define DIERR_INCOMPLETEEFFECT 0x80040206L
|
---|
188 | #define DIERR_NOTBUFFERED 0x80040207L
|
---|
189 | #define DIERR_EFFECTPLAYING 0x80040208L
|
---|
190 | #define DIERR_UNPLUGGED 0x80040209L
|
---|
191 | #define DIERR_REPORTFULL 0x8004020AL
|
---|
192 | #define DIERR_MAPFILEFAIL 0x8004020BL
|
---|
193 |
|
---|
194 | #define DIENUM_STOP 0
|
---|
195 | #define DIENUM_CONTINUE 1
|
---|
196 |
|
---|
197 | #define DIEDFL_ALLDEVICES 0x00000000
|
---|
198 | #define DIEDFL_ATTACHEDONLY 0x00000000
|
---|
199 | #define DIEDFL_FORCEFEEDBACK 0x00000100
|
---|
200 | #define DIEDFL_INCLUDEALIASES 0x00010000
|
---|
201 | #define DIEDFL_INCLUDEPHANTOMS 0x00020000
|
---|
202 | #define DIEDFL_INCLUDEHIDDEN 0x00040000
|
---|
203 |
|
---|
204 | #define DIDEVTYPE_DEVICE 1
|
---|
205 | #define DIDEVTYPE_MOUSE 2
|
---|
206 | #define DIDEVTYPE_KEYBOARD 3
|
---|
207 | #define DIDEVTYPE_JOYSTICK 4
|
---|
208 | #define DIDEVTYPE_HID 0x00010000
|
---|
209 |
|
---|
210 | #define DI8DEVCLASS_ALL 0
|
---|
211 | #define DI8DEVCLASS_DEVICE 1
|
---|
212 | #define DI8DEVCLASS_POINTER 2
|
---|
213 | #define DI8DEVCLASS_KEYBOARD 3
|
---|
214 | #define DI8DEVCLASS_GAMECTRL 4
|
---|
215 |
|
---|
216 | #define DI8DEVTYPE_DEVICE 0x11
|
---|
217 | #define DI8DEVTYPE_MOUSE 0x12
|
---|
218 | #define DI8DEVTYPE_KEYBOARD 0x13
|
---|
219 | #define DI8DEVTYPE_JOYSTICK 0x14
|
---|
220 | #define DI8DEVTYPE_GAMEPAD 0x15
|
---|
221 | #define DI8DEVTYPE_DRIVING 0x16
|
---|
222 | #define DI8DEVTYPE_FLIGHT 0x17
|
---|
223 | #define DI8DEVTYPE_1STPERSON 0x18
|
---|
224 | #define DI8DEVTYPE_DEVICECTRL 0x19
|
---|
225 | #define DI8DEVTYPE_SCREENPOINTER 0x1A
|
---|
226 | #define DI8DEVTYPE_REMOTE 0x1B
|
---|
227 | #define DI8DEVTYPE_SUPPLEMENTAL 0x1C
|
---|
228 |
|
---|
229 | #define DIDEVTYPEMOUSE_UNKNOWN 1
|
---|
230 | #define DIDEVTYPEMOUSE_TRADITIONAL 2
|
---|
231 | #define DIDEVTYPEMOUSE_FINGERSTICK 3
|
---|
232 | #define DIDEVTYPEMOUSE_TOUCHPAD 4
|
---|
233 | #define DIDEVTYPEMOUSE_TRACKBALL 5
|
---|
234 |
|
---|
235 | #define DIDEVTYPEKEYBOARD_UNKNOWN 0
|
---|
236 | #define DIDEVTYPEKEYBOARD_PCXT 1
|
---|
237 | #define DIDEVTYPEKEYBOARD_OLIVETTI 2
|
---|
238 | #define DIDEVTYPEKEYBOARD_PCAT 3
|
---|
239 | #define DIDEVTYPEKEYBOARD_PCENH 4
|
---|
240 | #define DIDEVTYPEKEYBOARD_NOKIA1050 5
|
---|
241 | #define DIDEVTYPEKEYBOARD_NOKIA9140 6
|
---|
242 | #define DIDEVTYPEKEYBOARD_NEC98 7
|
---|
243 | #define DIDEVTYPEKEYBOARD_NEC98LAPTOP 8
|
---|
244 | #define DIDEVTYPEKEYBOARD_NEC98106 9
|
---|
245 | #define DIDEVTYPEKEYBOARD_JAPAN106 10
|
---|
246 | #define DIDEVTYPEKEYBOARD_JAPANAX 11
|
---|
247 | #define DIDEVTYPEKEYBOARD_J3100 12
|
---|
248 |
|
---|
249 | #define DIDEVTYPEJOYSTICK_UNKNOWN 1
|
---|
250 | #define DIDEVTYPEJOYSTICK_TRADITIONAL 2
|
---|
251 | #define DIDEVTYPEJOYSTICK_FLIGHTSTICK 3
|
---|
252 | #define DIDEVTYPEJOYSTICK_GAMEPAD 4
|
---|
253 | #define DIDEVTYPEJOYSTICK_RUDDER 5
|
---|
254 | #define DIDEVTYPEJOYSTICK_WHEEL 6
|
---|
255 | #define DIDEVTYPEJOYSTICK_HEADTRACKER 7
|
---|
256 |
|
---|
257 | #define DI8DEVTYPEMOUSE_UNKNOWN 1
|
---|
258 | #define DI8DEVTYPEMOUSE_TRADITIONAL 2
|
---|
259 | #define DI8DEVTYPEMOUSE_FINGERSTICK 3
|
---|
260 | #define DI8DEVTYPEMOUSE_TOUCHPAD 4
|
---|
261 | #define DI8DEVTYPEMOUSE_TRACKBALL 5
|
---|
262 | #define DI8DEVTYPEMOUSE_ABSOLUTE 6
|
---|
263 |
|
---|
264 | #define DI8DEVTYPEKEYBOARD_UNKNOWN 0
|
---|
265 | #define DI8DEVTYPEKEYBOARD_PCXT 1
|
---|
266 | #define DI8DEVTYPEKEYBOARD_OLIVETTI 2
|
---|
267 | #define DI8DEVTYPEKEYBOARD_PCAT 3
|
---|
268 | #define DI8DEVTYPEKEYBOARD_PCENH 4
|
---|
269 | #define DI8DEVTYPEKEYBOARD_NOKIA1050 5
|
---|
270 | #define DI8DEVTYPEKEYBOARD_NOKIA9140 6
|
---|
271 | #define DI8DEVTYPEKEYBOARD_NEC98 7
|
---|
272 | #define DI8DEVTYPEKEYBOARD_NEC98LAPTOP 8
|
---|
273 | #define DI8DEVTYPEKEYBOARD_NEC98106 9
|
---|
274 | #define DI8DEVTYPEKEYBOARD_JAPAN106 10
|
---|
275 | #define DI8DEVTYPEKEYBOARD_JAPANAX 11
|
---|
276 | #define DI8DEVTYPEKEYBOARD_J3100 12
|
---|
277 |
|
---|
278 | #define DI8DEVTYPE_LIMITEDGAMESUBTYPE 1
|
---|
279 |
|
---|
280 | #define DI8DEVTYPEJOYSTICK_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
|
---|
281 | #define DI8DEVTYPEJOYSTICK_STANDARD 2
|
---|
282 |
|
---|
283 | #define DI8DEVTYPEGAMEPAD_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
|
---|
284 | #define DI8DEVTYPEGAMEPAD_STANDARD 2
|
---|
285 | #define DI8DEVTYPEGAMEPAD_TILT 3
|
---|
286 |
|
---|
287 | #define DI8DEVTYPEDRIVING_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
|
---|
288 | #define DI8DEVTYPEDRIVING_COMBINEDPEDALS 2
|
---|
289 | #define DI8DEVTYPEDRIVING_DUALPEDALS 3
|
---|
290 | #define DI8DEVTYPEDRIVING_THREEPEDALS 4
|
---|
291 | #define DI8DEVTYPEDRIVING_HANDHELD 5
|
---|
292 |
|
---|
293 | #define DI8DEVTYPEFLIGHT_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
|
---|
294 | #define DI8DEVTYPEFLIGHT_STICK 2
|
---|
295 | #define DI8DEVTYPEFLIGHT_YOKE 3
|
---|
296 | #define DI8DEVTYPEFLIGHT_RC 4
|
---|
297 |
|
---|
298 | #define DI8DEVTYPE1STPERSON_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
|
---|
299 | #define DI8DEVTYPE1STPERSON_UNKNOWN 2
|
---|
300 | #define DI8DEVTYPE1STPERSON_SIXDOF 3
|
---|
301 | #define DI8DEVTYPE1STPERSON_SHOOTER 4
|
---|
302 |
|
---|
303 | #define DI8DEVTYPESCREENPTR_UNKNOWN 2
|
---|
304 | #define DI8DEVTYPESCREENPTR_LIGHTGUN 3
|
---|
305 | #define DI8DEVTYPESCREENPTR_LIGHTPEN 4
|
---|
306 | #define DI8DEVTYPESCREENPTR_TOUCH 5
|
---|
307 |
|
---|
308 | #define DI8DEVTYPEREMOTE_UNKNOWN 2
|
---|
309 |
|
---|
310 | #define DI8DEVTYPEDEVICECTRL_UNKNOWN 2
|
---|
311 | #define DI8DEVTYPEDEVICECTRL_COMMSSELECTION 3
|
---|
312 | #define DI8DEVTYPEDEVICECTRL_COMMSSELECTION_HARDWIRED 4
|
---|
313 |
|
---|
314 | #define DI8DEVTYPESUPPLEMENTAL_UNKNOWN 2
|
---|
315 | #define DI8DEVTYPESUPPLEMENTAL_2NDHANDCONTROLLER 3
|
---|
316 | #define DI8DEVTYPESUPPLEMENTAL_HEADTRACKER 4
|
---|
317 | #define DI8DEVTYPESUPPLEMENTAL_HANDTRACKER 5
|
---|
318 | #define DI8DEVTYPESUPPLEMENTAL_SHIFTSTICKGATE 6
|
---|
319 | #define DI8DEVTYPESUPPLEMENTAL_SHIFTER 7
|
---|
320 | #define DI8DEVTYPESUPPLEMENTAL_THROTTLE 8
|
---|
321 | #define DI8DEVTYPESUPPLEMENTAL_SPLITTHROTTLE 9
|
---|
322 | #define DI8DEVTYPESUPPLEMENTAL_COMBINEDPEDALS 10
|
---|
323 | #define DI8DEVTYPESUPPLEMENTAL_DUALPEDALS 11
|
---|
324 | #define DI8DEVTYPESUPPLEMENTAL_THREEPEDALS 12
|
---|
325 | #define DI8DEVTYPESUPPLEMENTAL_RUDDERPEDALS 13
|
---|
326 |
|
---|
327 | #define GET_DIDEVICE_TYPE(dwDevType) LOBYTE(dwDevType)
|
---|
328 | #define GET_DIDEVICE_SUBTYPE(dwDevType) HIBYTE(dwDevType)
|
---|
329 |
|
---|
330 | typedef struct DIDEVICEOBJECTINSTANCE_DX3A {
|
---|
331 | DWORD dwSize;
|
---|
332 | GUID guidType;
|
---|
333 | DWORD dwOfs;
|
---|
334 | DWORD dwType;
|
---|
335 | DWORD dwFlags;
|
---|
336 | CHAR tszName[MAX_PATH];
|
---|
337 | } DIDEVICEOBJECTINSTANCE_DX3A, *LPDIDEVICEOBJECTINSTANCE_DX3A;
|
---|
338 | typedef const DIDEVICEOBJECTINSTANCE_DX3A *LPCDIDEVICEOBJECTINSTANCE_DX3A;
|
---|
339 | typedef struct DIDEVICEOBJECTINSTANCE_DX3W {
|
---|
340 | DWORD dwSize;
|
---|
341 | GUID guidType;
|
---|
342 | DWORD dwOfs;
|
---|
343 | DWORD dwType;
|
---|
344 | DWORD dwFlags;
|
---|
345 | WCHAR tszName[MAX_PATH];
|
---|
346 | } DIDEVICEOBJECTINSTANCE_DX3W, *LPDIDEVICEOBJECTINSTANCE_DX3W;
|
---|
347 | typedef const DIDEVICEOBJECTINSTANCE_DX3W *LPCDIDEVICEOBJECTINSTANCE_DX3W;
|
---|
348 |
|
---|
349 | DECL_WINELIB_TYPE_AW(DIDEVICEOBJECTINSTANCE_DX3)
|
---|
350 | DECL_WINELIB_TYPE_AW(LPDIDEVICEOBJECTINSTANCE_DX3)
|
---|
351 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEOBJECTINSTANCE_DX3)
|
---|
352 |
|
---|
353 | typedef struct DIDEVICEOBJECTINSTANCEA {
|
---|
354 | DWORD dwSize;
|
---|
355 | GUID guidType;
|
---|
356 | DWORD dwOfs;
|
---|
357 | DWORD dwType;
|
---|
358 | DWORD dwFlags;
|
---|
359 | CHAR tszName[MAX_PATH];
|
---|
360 | DWORD dwFFMaxForce;
|
---|
361 | DWORD dwFFForceResolution;
|
---|
362 | WORD wCollectionNumber;
|
---|
363 | WORD wDesignatorIndex;
|
---|
364 | WORD wUsagePage;
|
---|
365 | WORD wUsage;
|
---|
366 | DWORD dwDimension;
|
---|
367 | WORD wExponent;
|
---|
368 | WORD wReserved;
|
---|
369 | } DIDEVICEOBJECTINSTANCEA, *LPDIDEVICEOBJECTINSTANCEA;
|
---|
370 | typedef const DIDEVICEOBJECTINSTANCEA *LPCDIDEVICEOBJECTINSTANCEA;
|
---|
371 |
|
---|
372 | typedef struct DIDEVICEOBJECTINSTANCEW {
|
---|
373 | DWORD dwSize;
|
---|
374 | GUID guidType;
|
---|
375 | DWORD dwOfs;
|
---|
376 | DWORD dwType;
|
---|
377 | DWORD dwFlags;
|
---|
378 | WCHAR tszName[MAX_PATH];
|
---|
379 | DWORD dwFFMaxForce;
|
---|
380 | DWORD dwFFForceResolution;
|
---|
381 | WORD wCollectionNumber;
|
---|
382 | WORD wDesignatorIndex;
|
---|
383 | WORD wUsagePage;
|
---|
384 | WORD wUsage;
|
---|
385 | DWORD dwDimension;
|
---|
386 | WORD wExponent;
|
---|
387 | WORD wReserved;
|
---|
388 | } DIDEVICEOBJECTINSTANCEW, *LPDIDEVICEOBJECTINSTANCEW;
|
---|
389 | typedef const DIDEVICEOBJECTINSTANCEW *LPCDIDEVICEOBJECTINSTANCEW;
|
---|
390 |
|
---|
391 | DECL_WINELIB_TYPE_AW(DIDEVICEOBJECTINSTANCE)
|
---|
392 | DECL_WINELIB_TYPE_AW(LPDIDEVICEOBJECTINSTANCE)
|
---|
393 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEOBJECTINSTANCE)
|
---|
394 |
|
---|
395 | typedef struct DIDEVICEINSTANCE_DX3A {
|
---|
396 | DWORD dwSize;
|
---|
397 | GUID guidInstance;
|
---|
398 | GUID guidProduct;
|
---|
399 | DWORD dwDevType;
|
---|
400 | CHAR tszInstanceName[MAX_PATH];
|
---|
401 | CHAR tszProductName[MAX_PATH];
|
---|
402 | } DIDEVICEINSTANCE_DX3A, *LPDIDEVICEINSTANCE_DX3A;
|
---|
403 | typedef const DIDEVICEINSTANCE_DX3A *LPCDIDEVICEINSTANCE_DX3A;
|
---|
404 | typedef struct DIDEVICEINSTANCE_DX3W {
|
---|
405 | DWORD dwSize;
|
---|
406 | GUID guidInstance;
|
---|
407 | GUID guidProduct;
|
---|
408 | DWORD dwDevType;
|
---|
409 | WCHAR tszInstanceName[MAX_PATH];
|
---|
410 | WCHAR tszProductName[MAX_PATH];
|
---|
411 | } DIDEVICEINSTANCE_DX3W, *LPDIDEVICEINSTANCE_DX3W;
|
---|
412 | typedef const DIDEVICEINSTANCE_DX3W *LPCDIDEVICEINSTANCE_DX3W;
|
---|
413 |
|
---|
414 | DECL_WINELIB_TYPE_AW(DIDEVICEINSTANCE_DX3)
|
---|
415 | DECL_WINELIB_TYPE_AW(LPDIDEVICEINSTANCE_DX3)
|
---|
416 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEINSTANCE_DX3)
|
---|
417 |
|
---|
418 | typedef struct DIDEVICEINSTANCEA {
|
---|
419 | DWORD dwSize;
|
---|
420 | GUID guidInstance;
|
---|
421 | GUID guidProduct;
|
---|
422 | DWORD dwDevType;
|
---|
423 | CHAR tszInstanceName[MAX_PATH];
|
---|
424 | CHAR tszProductName[MAX_PATH];
|
---|
425 | GUID guidFFDriver;
|
---|
426 | WORD wUsagePage;
|
---|
427 | WORD wUsage;
|
---|
428 | } DIDEVICEINSTANCEA, *LPDIDEVICEINSTANCEA;
|
---|
429 | typedef const DIDEVICEINSTANCEA *LPCDIDEVICEINSTANCEA;
|
---|
430 |
|
---|
431 | typedef struct DIDEVICEINSTANCEW {
|
---|
432 | DWORD dwSize;
|
---|
433 | GUID guidInstance;
|
---|
434 | GUID guidProduct;
|
---|
435 | DWORD dwDevType;
|
---|
436 | WCHAR tszInstanceName[MAX_PATH];
|
---|
437 | WCHAR tszProductName[MAX_PATH];
|
---|
438 | GUID guidFFDriver;
|
---|
439 | WORD wUsagePage;
|
---|
440 | WORD wUsage;
|
---|
441 | } DIDEVICEINSTANCEW, *LPDIDEVICEINSTANCEW;
|
---|
442 | typedef const DIDEVICEINSTANCEW *LPCDIDEVICEINSTANCEW;
|
---|
443 |
|
---|
444 | DECL_WINELIB_TYPE_AW(DIDEVICEINSTANCE)
|
---|
445 | DECL_WINELIB_TYPE_AW(LPDIDEVICEINSTANCE)
|
---|
446 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEINSTANCE)
|
---|
447 |
|
---|
448 | typedef BOOL (CALLBACK *LPDIENUMDEVICESCALLBACKA)(LPCDIDEVICEINSTANCEA,LPVOID);
|
---|
449 | typedef BOOL (CALLBACK *LPDIENUMDEVICESCALLBACKW)(LPCDIDEVICEINSTANCEW,LPVOID);
|
---|
450 | DECL_WINELIB_TYPE_AW(LPDIENUMDEVICESCALLBACK)
|
---|
451 |
|
---|
452 | #define DIEDBS_MAPPEDPRI1 0x00000001
|
---|
453 | #define DIEDBS_MAPPEDPRI2 0x00000002
|
---|
454 | #define DIEDBS_RECENTDEVICE 0x00000010
|
---|
455 | #define DIEDBS_NEWDEVICE 0x00000020
|
---|
456 |
|
---|
457 | #define DIEDBSFL_ATTACHEDONLY 0x00000000
|
---|
458 | #define DIEDBSFL_THISUSER 0x00000010
|
---|
459 | #define DIEDBSFL_FORCEFEEDBACK DIEDFL_FORCEFEEDBACK
|
---|
460 | #define DIEDBSFL_AVAILABLEDEVICES 0x00001000
|
---|
461 | #define DIEDBSFL_MULTIMICEKEYBOARDS 0x00002000
|
---|
462 | #define DIEDBSFL_NONGAMINGDEVICES 0x00004000
|
---|
463 | #define DIEDBSFL_VALID 0x00007110
|
---|
464 |
|
---|
465 | typedef BOOL (CALLBACK *LPDIENUMDEVICESBYSEMANTICSCBA)(LPCDIDEVICEINSTANCEA,LPDIRECTINPUTDEVICE8A,DWORD,DWORD,LPVOID);
|
---|
466 | typedef BOOL (CALLBACK *LPDIENUMDEVICESBYSEMANTICSCBW)(LPCDIDEVICEINSTANCEW,LPDIRECTINPUTDEVICE8W,DWORD,DWORD,LPVOID);
|
---|
467 | DECL_WINELIB_TYPE_AW(LPDIENUMDEVICESBYSEMANTICSCB)
|
---|
468 |
|
---|
469 | typedef BOOL (CALLBACK *LPDICONFIGUREDEVICESCALLBACK)(LPUNKNOWN,LPVOID);
|
---|
470 |
|
---|
471 | typedef BOOL (CALLBACK *LPDIENUMDEVICEOBJECTSCALLBACKA)(LPCDIDEVICEOBJECTINSTANCEA,LPVOID);
|
---|
472 | typedef BOOL (CALLBACK *LPDIENUMDEVICEOBJECTSCALLBACKW)(LPCDIDEVICEOBJECTINSTANCEW,LPVOID);
|
---|
473 | DECL_WINELIB_TYPE_AW(LPDIENUMDEVICEOBJECTSCALLBACK)
|
---|
474 |
|
---|
475 | typedef BOOL (CALLBACK *LPDIENUMCREATEDEFFECTOBJECTSCALLBACK)(LPDIRECTINPUTEFFECT, LPVOID);
|
---|
476 |
|
---|
477 | #define DIK_ESCAPE 0x01
|
---|
478 | #define DIK_1 0x02
|
---|
479 | #define DIK_2 0x03
|
---|
480 | #define DIK_3 0x04
|
---|
481 | #define DIK_4 0x05
|
---|
482 | #define DIK_5 0x06
|
---|
483 | #define DIK_6 0x07
|
---|
484 | #define DIK_7 0x08
|
---|
485 | #define DIK_8 0x09
|
---|
486 | #define DIK_9 0x0A
|
---|
487 | #define DIK_0 0x0B
|
---|
488 | #define DIK_MINUS 0x0C /* - on main keyboard */
|
---|
489 | #define DIK_EQUALS 0x0D
|
---|
490 | #define DIK_BACK 0x0E /* backspace */
|
---|
491 | #define DIK_TAB 0x0F
|
---|
492 | #define DIK_Q 0x10
|
---|
493 | #define DIK_W 0x11
|
---|
494 | #define DIK_E 0x12
|
---|
495 | #define DIK_R 0x13
|
---|
496 | #define DIK_T 0x14
|
---|
497 | #define DIK_Y 0x15
|
---|
498 | #define DIK_U 0x16
|
---|
499 | #define DIK_I 0x17
|
---|
500 | #define DIK_O 0x18
|
---|
501 | #define DIK_P 0x19
|
---|
502 | #define DIK_LBRACKET 0x1A
|
---|
503 | #define DIK_RBRACKET 0x1B
|
---|
504 | #define DIK_RETURN 0x1C /* Enter on main keyboard */
|
---|
505 | #define DIK_LCONTROL 0x1D
|
---|
506 | #define DIK_A 0x1E
|
---|
507 | #define DIK_S 0x1F
|
---|
508 | #define DIK_D 0x20
|
---|
509 | #define DIK_F 0x21
|
---|
510 | #define DIK_G 0x22
|
---|
511 | #define DIK_H 0x23
|
---|
512 | #define DIK_J 0x24
|
---|
513 | #define DIK_K 0x25
|
---|
514 | #define DIK_L 0x26
|
---|
515 | #define DIK_SEMICOLON 0x27
|
---|
516 | #define DIK_APOSTROPHE 0x28
|
---|
517 | #define DIK_GRAVE 0x29 /* accent grave */
|
---|
518 | #define DIK_LSHIFT 0x2A
|
---|
519 | #define DIK_BACKSLASH 0x2B
|
---|
520 | #define DIK_Z 0x2C
|
---|
521 | #define DIK_X 0x2D
|
---|
522 | #define DIK_C 0x2E
|
---|
523 | #define DIK_V 0x2F
|
---|
524 | #define DIK_B 0x30
|
---|
525 | #define DIK_N 0x31
|
---|
526 | #define DIK_M 0x32
|
---|
527 | #define DIK_COMMA 0x33
|
---|
528 | #define DIK_PERIOD 0x34 /* . on main keyboard */
|
---|
529 | #define DIK_SLASH 0x35 /* / on main keyboard */
|
---|
530 | #define DIK_RSHIFT 0x36
|
---|
531 | #define DIK_MULTIPLY 0x37 /* * on numeric keypad */
|
---|
532 | #define DIK_LMENU 0x38 /* left Alt */
|
---|
533 | #define DIK_SPACE 0x39
|
---|
534 | #define DIK_CAPITAL 0x3A
|
---|
535 | #define DIK_F1 0x3B
|
---|
536 | #define DIK_F2 0x3C
|
---|
537 | #define DIK_F3 0x3D
|
---|
538 | #define DIK_F4 0x3E
|
---|
539 | #define DIK_F5 0x3F
|
---|
540 | #define DIK_F6 0x40
|
---|
541 | #define DIK_F7 0x41
|
---|
542 | #define DIK_F8 0x42
|
---|
543 | #define DIK_F9 0x43
|
---|
544 | #define DIK_F10 0x44
|
---|
545 | #define DIK_NUMLOCK 0x45
|
---|
546 | #define DIK_SCROLL 0x46 /* Scroll Lock */
|
---|
547 | #define DIK_NUMPAD7 0x47
|
---|
548 | #define DIK_NUMPAD8 0x48
|
---|
549 | #define DIK_NUMPAD9 0x49
|
---|
550 | #define DIK_SUBTRACT 0x4A /* - on numeric keypad */
|
---|
551 | #define DIK_NUMPAD4 0x4B
|
---|
552 | #define DIK_NUMPAD5 0x4C
|
---|
553 | #define DIK_NUMPAD6 0x4D
|
---|
554 | #define DIK_ADD 0x4E /* + on numeric keypad */
|
---|
555 | #define DIK_NUMPAD1 0x4F
|
---|
556 | #define DIK_NUMPAD2 0x50
|
---|
557 | #define DIK_NUMPAD3 0x51
|
---|
558 | #define DIK_NUMPAD0 0x52
|
---|
559 | #define DIK_DECIMAL 0x53 /* . on numeric keypad */
|
---|
560 | #define DIK_F11 0x57
|
---|
561 | #define DIK_F12 0x58
|
---|
562 | #define DIK_F13 0x64 /* (NEC PC98) */
|
---|
563 | #define DIK_F14 0x65 /* (NEC PC98) */
|
---|
564 | #define DIK_F15 0x66 /* (NEC PC98) */
|
---|
565 | #define DIK_KANA 0x70 /* (Japanese keyboard) */
|
---|
566 | #define DIK_CONVERT 0x79 /* (Japanese keyboard) */
|
---|
567 | #define DIK_NOCONVERT 0x7B /* (Japanese keyboard) */
|
---|
568 | #define DIK_YEN 0x7D /* (Japanese keyboard) */
|
---|
569 | #define DIK_NUMPADEQUALS 0x8D /* = on numeric keypad (NEC PC98) */
|
---|
570 | #define DIK_CIRCUMFLEX 0x90 /* (Japanese keyboard) */
|
---|
571 | #define DIK_AT 0x91 /* (NEC PC98) */
|
---|
572 | #define DIK_COLON 0x92 /* (NEC PC98) */
|
---|
573 | #define DIK_UNDERLINE 0x93 /* (NEC PC98) */
|
---|
574 | #define DIK_KANJI 0x94 /* (Japanese keyboard) */
|
---|
575 | #define DIK_STOP 0x95 /* (NEC PC98) */
|
---|
576 | #define DIK_AX 0x96 /* (Japan AX) */
|
---|
577 | #define DIK_UNLABELED 0x97 /* (J3100) */
|
---|
578 | #define DIK_NUMPADENTER 0x9C /* Enter on numeric keypad */
|
---|
579 | #define DIK_RCONTROL 0x9D
|
---|
580 | #define DIK_NUMPADCOMMA 0xB3 /* , on numeric keypad (NEC PC98) */
|
---|
581 | #define DIK_DIVIDE 0xB5 /* / on numeric keypad */
|
---|
582 | #define DIK_SYSRQ 0xB7
|
---|
583 | #define DIK_RMENU 0xB8 /* right Alt */
|
---|
584 | #define DIK_PAUSE 0xC5 /* Pause */
|
---|
585 | #define DIK_HOME 0xC7 /* Home on arrow keypad */
|
---|
586 | #define DIK_UP 0xC8 /* UpArrow on arrow keypad */
|
---|
587 | #define DIK_PRIOR 0xC9 /* PgUp on arrow keypad */
|
---|
588 | #define DIK_LEFT 0xCB /* LeftArrow on arrow keypad */
|
---|
589 | #define DIK_RIGHT 0xCD /* RightArrow on arrow keypad */
|
---|
590 | #define DIK_END 0xCF /* End on arrow keypad */
|
---|
591 | #define DIK_DOWN 0xD0 /* DownArrow on arrow keypad */
|
---|
592 | #define DIK_NEXT 0xD1 /* PgDn on arrow keypad */
|
---|
593 | #define DIK_INSERT 0xD2 /* Insert on arrow keypad */
|
---|
594 | #define DIK_DELETE 0xD3 /* Delete on arrow keypad */
|
---|
595 | #define DIK_LWIN 0xDB /* Left Windows key */
|
---|
596 | #define DIK_RWIN 0xDC /* Right Windows key */
|
---|
597 | #define DIK_APPS 0xDD /* AppMenu key */
|
---|
598 | #define DIK_POWER 0xDE
|
---|
599 | #define DIK_SLEEP 0xDF
|
---|
600 | #define DIK_BACKSPACE DIK_BACK /* backspace */
|
---|
601 | #define DIK_NUMPADSTAR DIK_MULTIPLY /* * on numeric keypad */
|
---|
602 | #define DIK_LALT DIK_LMENU /* left Alt */
|
---|
603 | #define DIK_CAPSLOCK DIK_CAPITAL /* CapsLock */
|
---|
604 | #define DIK_NUMPADMINUS DIK_SUBTRACT /* - on numeric keypad */
|
---|
605 | #define DIK_NUMPADPLUS DIK_ADD /* + on numeric keypad */
|
---|
606 | #define DIK_NUMPADPERIOD DIK_DECIMAL /* . on numeric keypad */
|
---|
607 | #define DIK_NUMPADSLASH DIK_DIVIDE /* / on numeric keypad */
|
---|
608 | #define DIK_RALT DIK_RMENU /* right Alt */
|
---|
609 | #define DIK_UPARROW DIK_UP /* UpArrow on arrow keypad */
|
---|
610 | #define DIK_PGUP DIK_PRIOR /* PgUp on arrow keypad */
|
---|
611 | #define DIK_LEFTARROW DIK_LEFT /* LeftArrow on arrow keypad */
|
---|
612 | #define DIK_RIGHTARROW DIK_RIGHT /* RightArrow on arrow keypad */
|
---|
613 | #define DIK_DOWNARROW DIK_DOWN /* DownArrow on arrow keypad */
|
---|
614 | #define DIK_PGDN DIK_NEXT /* PgDn on arrow keypad */
|
---|
615 |
|
---|
616 | #define DIDFT_ALL 0x00000000
|
---|
617 | #define DIDFT_RELAXIS 0x00000001
|
---|
618 | #define DIDFT_ABSAXIS 0x00000002
|
---|
619 | #define DIDFT_AXIS 0x00000003
|
---|
620 | #define DIDFT_PSHBUTTON 0x00000004
|
---|
621 | #define DIDFT_TGLBUTTON 0x00000008
|
---|
622 | #define DIDFT_BUTTON 0x0000000C
|
---|
623 | #define DIDFT_POV 0x00000010
|
---|
624 | #define DIDFT_COLLECTION 0x00000040
|
---|
625 | #define DIDFT_NODATA 0x00000080
|
---|
626 | #define DIDFT_ANYINSTANCE 0x00FFFF00
|
---|
627 | #define DIDFT_INSTANCEMASK DIDFT_ANYINSTANCE
|
---|
628 | #define DIDFT_MAKEINSTANCE(n) ((WORD)(n) << 8)
|
---|
629 | #define DIDFT_GETTYPE(n) LOBYTE(n)
|
---|
630 | #define DIDFT_GETINSTANCE(n) LOWORD((n) >> 8)
|
---|
631 | #define DIDFT_FFACTUATOR 0x01000000
|
---|
632 | #define DIDFT_FFEFFECTTRIGGER 0x02000000
|
---|
633 | #define DIDFT_OUTPUT 0x10000000
|
---|
634 | #define DIDFT_VENDORDEFINED 0x04000000
|
---|
635 | #define DIDFT_ALIAS 0x08000000
|
---|
636 | #ifndef DIDFT_OPTIONAL
|
---|
637 | #define DIDFT_OPTIONAL 0x80000000
|
---|
638 | #endif
|
---|
639 | #define DIDFT_ENUMCOLLECTION(n) ((WORD)(n) << 8)
|
---|
640 | #define DIDFT_NOCOLLECTION 0x00FFFF00
|
---|
641 | #define DIDF_ABSAXIS 0x00000001
|
---|
642 | #define DIDF_RELAXIS 0x00000002
|
---|
643 |
|
---|
644 | #define DIGDD_PEEK 0x00000001
|
---|
645 |
|
---|
646 | #define DISEQUENCE_COMPARE(dwSq1,cmp,dwSq2) ((int)((dwSq1) - (dwSq2)) cmp 0)
|
---|
647 |
|
---|
648 | typedef struct DIDEVICEOBJECTDATA_DX3 {
|
---|
649 | DWORD dwOfs;
|
---|
650 | DWORD dwData;
|
---|
651 | DWORD dwTimeStamp;
|
---|
652 | DWORD dwSequence;
|
---|
653 | } DIDEVICEOBJECTDATA_DX3,*LPDIDEVICEOBJECTDATA_DX3;
|
---|
654 | typedef const DIDEVICEOBJECTDATA_DX3 *LPCDIDEVICEOBJECTDATA_DX3;
|
---|
655 |
|
---|
656 | typedef struct DIDEVICEOBJECTDATA {
|
---|
657 | DWORD dwOfs;
|
---|
658 | DWORD dwData;
|
---|
659 | DWORD dwTimeStamp;
|
---|
660 | DWORD dwSequence;
|
---|
661 | UINT_PTR uAppData;
|
---|
662 | } DIDEVICEOBJECTDATA, *LPDIDEVICEOBJECTDATA;
|
---|
663 | typedef const DIDEVICEOBJECTDATA *LPCDIDEVICEOBJECTDATA;
|
---|
664 |
|
---|
665 | typedef struct _DIOBJECTDATAFORMAT {
|
---|
666 | const GUID *pguid;
|
---|
667 | DWORD dwOfs;
|
---|
668 | DWORD dwType;
|
---|
669 | DWORD dwFlags;
|
---|
670 | } DIOBJECTDATAFORMAT, *LPDIOBJECTDATAFORMAT;
|
---|
671 | typedef const DIOBJECTDATAFORMAT *LPCDIOBJECTDATAFORMAT;
|
---|
672 |
|
---|
673 | typedef struct _DIDATAFORMAT {
|
---|
674 | DWORD dwSize;
|
---|
675 | DWORD dwObjSize;
|
---|
676 | DWORD dwFlags;
|
---|
677 | DWORD dwDataSize;
|
---|
678 | DWORD dwNumObjs;
|
---|
679 | LPDIOBJECTDATAFORMAT rgodf;
|
---|
680 | } DIDATAFORMAT, *LPDIDATAFORMAT;
|
---|
681 | typedef const DIDATAFORMAT *LPCDIDATAFORMAT;
|
---|
682 |
|
---|
683 | #define DIDOI_FFACTUATOR 0x00000001
|
---|
684 | #define DIDOI_FFEFFECTTRIGGER 0x00000002
|
---|
685 | #define DIDOI_POLLED 0x00008000
|
---|
686 | #define DIDOI_ASPECTPOSITION 0x00000100
|
---|
687 | #define DIDOI_ASPECTVELOCITY 0x00000200
|
---|
688 | #define DIDOI_ASPECTACCEL 0x00000300
|
---|
689 | #define DIDOI_ASPECTFORCE 0x00000400
|
---|
690 | #define DIDOI_ASPECTMASK 0x00000F00
|
---|
691 | #define DIDOI_GUIDISUSAGE 0x00010000
|
---|
692 |
|
---|
693 | typedef struct DIPROPHEADER {
|
---|
694 | DWORD dwSize;
|
---|
695 | DWORD dwHeaderSize;
|
---|
696 | DWORD dwObj;
|
---|
697 | DWORD dwHow;
|
---|
698 | } DIPROPHEADER,*LPDIPROPHEADER;
|
---|
699 | typedef const DIPROPHEADER *LPCDIPROPHEADER;
|
---|
700 |
|
---|
701 | #define DIPH_DEVICE 0
|
---|
702 | #define DIPH_BYOFFSET 1
|
---|
703 | #define DIPH_BYID 2
|
---|
704 | #define DIPH_BYUSAGE 3
|
---|
705 |
|
---|
706 | #define DIMAKEUSAGEDWORD(UsagePage, Usage) (DWORD)MAKELONG(Usage, UsagePage)
|
---|
707 |
|
---|
708 | typedef struct DIPROPDWORD {
|
---|
709 | DIPROPHEADER diph;
|
---|
710 | DWORD dwData;
|
---|
711 | } DIPROPDWORD, *LPDIPROPDWORD;
|
---|
712 | typedef const DIPROPDWORD *LPCDIPROPDWORD;
|
---|
713 |
|
---|
714 | typedef struct DIPROPRANGE {
|
---|
715 | DIPROPHEADER diph;
|
---|
716 | LONG lMin;
|
---|
717 | LONG lMax;
|
---|
718 | } DIPROPRANGE, *LPDIPROPRANGE;
|
---|
719 | typedef const DIPROPRANGE *LPCDIPROPRANGE;
|
---|
720 |
|
---|
721 | #define DIPROPRANGE_NOMIN ((LONG)0x80000000)
|
---|
722 | #define DIPROPRANGE_NOMAX ((LONG)0x7FFFFFFF)
|
---|
723 |
|
---|
724 | typedef struct DIPROPCAL {
|
---|
725 | DIPROPHEADER diph;
|
---|
726 | LONG lMin;
|
---|
727 | LONG lCenter;
|
---|
728 | LONG lMax;
|
---|
729 | } DIPROPCAL, *LPDIPROPCAL;
|
---|
730 | typedef const DIPROPCAL *LPCDIPROPCAL;
|
---|
731 |
|
---|
732 | typedef struct DIPROPGUIDANDPATH {
|
---|
733 | DIPROPHEADER diph;
|
---|
734 | GUID guidClass;
|
---|
735 | WCHAR wszPath[MAX_PATH];
|
---|
736 | } DIPROPGUIDANDPATH, *LPDIPROPGUIDANDPATH;
|
---|
737 | typedef const DIPROPGUIDANDPATH *LPCDIPROPGUIDANDPATH;
|
---|
738 |
|
---|
739 | typedef struct DIPROPSTRING {
|
---|
740 | DIPROPHEADER diph;
|
---|
741 | WCHAR wsz[MAX_PATH];
|
---|
742 | } DIPROPSTRING, *LPDIPROPSTRING;
|
---|
743 | typedef const DIPROPSTRING *LPCDIPROPSTRING;
|
---|
744 |
|
---|
745 | /* special property GUIDs */
|
---|
746 | #ifdef __cplusplus
|
---|
747 | #define MAKEDIPROP(prop) (*(const GUID *)(prop))
|
---|
748 | #else
|
---|
749 | #define MAKEDIPROP(prop) ((REFGUID)(prop))
|
---|
750 | #endif
|
---|
751 | #define DIPROP_BUFFERSIZE MAKEDIPROP(1)
|
---|
752 | #define DIPROP_AXISMODE MAKEDIPROP(2)
|
---|
753 |
|
---|
754 | #define DIPROPAXISMODE_ABS 0
|
---|
755 | #define DIPROPAXISMODE_REL 1
|
---|
756 |
|
---|
757 | #define DIPROP_GRANULARITY MAKEDIPROP(3)
|
---|
758 | #define DIPROP_RANGE MAKEDIPROP(4)
|
---|
759 | #define DIPROP_DEADZONE MAKEDIPROP(5)
|
---|
760 | #define DIPROP_SATURATION MAKEDIPROP(6)
|
---|
761 | #define DIPROP_FFGAIN MAKEDIPROP(7)
|
---|
762 | #define DIPROP_FFLOAD MAKEDIPROP(8)
|
---|
763 | #define DIPROP_AUTOCENTER MAKEDIPROP(9)
|
---|
764 |
|
---|
765 | #define DIPROPAUTOCENTER_OFF 0
|
---|
766 | #define DIPROPAUTOCENTER_ON 1
|
---|
767 |
|
---|
768 | #define DIPROP_CALIBRATIONMODE MAKEDIPROP(10)
|
---|
769 |
|
---|
770 | #define DIPROPCALIBRATIONMODE_COOKED 0
|
---|
771 | #define DIPROPCALIBRATIONMODE_RAW 1
|
---|
772 |
|
---|
773 | #define DIPROP_CALIBRATION MAKEDIPROP(11)
|
---|
774 | #define DIPROP_GUIDANDPATH MAKEDIPROP(12)
|
---|
775 | #define DIPROP_KEYNAME MAKEDIPROP(20)
|
---|
776 |
|
---|
777 | typedef struct DIDEVCAPS_DX3 {
|
---|
778 | DWORD dwSize;
|
---|
779 | DWORD dwFlags;
|
---|
780 | DWORD dwDevType;
|
---|
781 | DWORD dwAxes;
|
---|
782 | DWORD dwButtons;
|
---|
783 | DWORD dwPOVs;
|
---|
784 | } DIDEVCAPS_DX3, *LPDIDEVCAPS_DX3;
|
---|
785 |
|
---|
786 | typedef struct DIDEVCAPS {
|
---|
787 | DWORD dwSize;
|
---|
788 | DWORD dwFlags;
|
---|
789 | DWORD dwDevType;
|
---|
790 | DWORD dwAxes;
|
---|
791 | DWORD dwButtons;
|
---|
792 | DWORD dwPOVs;
|
---|
793 | DWORD dwFFSamplePeriod;
|
---|
794 | DWORD dwFFMinTimeResolution;
|
---|
795 | DWORD dwFirmwareRevision;
|
---|
796 | DWORD dwHardwareRevision;
|
---|
797 | DWORD dwFFDriverVersion;
|
---|
798 | } DIDEVCAPS,*LPDIDEVCAPS;
|
---|
799 |
|
---|
800 | #define DIDC_ATTACHED 0x00000001
|
---|
801 | #define DIDC_POLLEDDEVICE 0x00000002
|
---|
802 | #define DIDC_EMULATED 0x00000004
|
---|
803 | #define DIDC_POLLEDDATAFORMAT 0x00000008
|
---|
804 | #define DIDC_FORCEFEEDBACK 0x00000100
|
---|
805 | #define DIDC_FFATTACK 0x00000200
|
---|
806 | #define DIDC_FFFADE 0x00000400
|
---|
807 | #define DIDC_SATURATION 0x00000800
|
---|
808 | #define DIDC_POSNEGCOEFFICIENTS 0x00001000
|
---|
809 | #define DIDC_POSNEGSATURATION 0x00002000
|
---|
810 | #define DIDC_DEADBAND 0x00004000
|
---|
811 | #define DIDC_STARTDELAY 0x00008000
|
---|
812 | #define DIDC_ALIAS 0x00010000
|
---|
813 | #define DIDC_PHANTOM 0x00020000
|
---|
814 | #define DIDC_HIDDEN 0x00040000
|
---|
815 |
|
---|
816 |
|
---|
817 | /* SetCooperativeLevel dwFlags */
|
---|
818 | #define DISCL_EXCLUSIVE 0x00000001
|
---|
819 | #define DISCL_NONEXCLUSIVE 0x00000002
|
---|
820 | #define DISCL_FOREGROUND 0x00000004
|
---|
821 | #define DISCL_BACKGROUND 0x00000008
|
---|
822 | #define DISCL_NOWINKEY 0x00000010
|
---|
823 |
|
---|
824 | /* Device FF flags */
|
---|
825 | #define DISFFC_RESET 0x00000001
|
---|
826 | #define DISFFC_STOPALL 0x00000002
|
---|
827 | #define DISFFC_PAUSE 0x00000004
|
---|
828 | #define DISFFC_CONTINUE 0x00000008
|
---|
829 | #define DISFFC_SETACTUATORSON 0x00000010
|
---|
830 | #define DISFFC_SETACTUATORSOFF 0x00000020
|
---|
831 |
|
---|
832 | #define DIGFFS_EMPTY 0x00000001
|
---|
833 | #define DIGFFS_STOPPED 0x00000002
|
---|
834 | #define DIGFFS_PAUSED 0x00000004
|
---|
835 | #define DIGFFS_ACTUATORSON 0x00000010
|
---|
836 | #define DIGFFS_ACTUATORSOFF 0x00000020
|
---|
837 | #define DIGFFS_POWERON 0x00000040
|
---|
838 | #define DIGFFS_POWEROFF 0x00000080
|
---|
839 | #define DIGFFS_SAFETYSWITCHON 0x00000100
|
---|
840 | #define DIGFFS_SAFETYSWITCHOFF 0x00000200
|
---|
841 | #define DIGFFS_USERFFSWITCHON 0x00000400
|
---|
842 | #define DIGFFS_USERFFSWITCHOFF 0x00000800
|
---|
843 | #define DIGFFS_DEVICELOST 0x80000000
|
---|
844 |
|
---|
845 | /* Effect flags */
|
---|
846 | #define DIEFT_ALL 0x00000000
|
---|
847 |
|
---|
848 | #define DIEFT_CONSTANTFORCE 0x00000001
|
---|
849 | #define DIEFT_RAMPFORCE 0x00000002
|
---|
850 | #define DIEFT_PERIODIC 0x00000003
|
---|
851 | #define DIEFT_CONDITION 0x00000004
|
---|
852 | #define DIEFT_CUSTOMFORCE 0x00000005
|
---|
853 | #define DIEFT_HARDWARE 0x000000FF
|
---|
854 | #define DIEFT_FFATTACK 0x00000200
|
---|
855 | #define DIEFT_FFFADE 0x00000400
|
---|
856 | #define DIEFT_SATURATION 0x00000800
|
---|
857 | #define DIEFT_POSNEGCOEFFICIENTS 0x00001000
|
---|
858 | #define DIEFT_POSNEGSATURATION 0x00002000
|
---|
859 | #define DIEFT_DEADBAND 0x00004000
|
---|
860 | #define DIEFT_STARTDELAY 0x00008000
|
---|
861 | #define DIEFT_GETTYPE(n) LOBYTE(n)
|
---|
862 |
|
---|
863 | #define DIEFF_OBJECTIDS 0x00000001
|
---|
864 | #define DIEFF_OBJECTOFFSETS 0x00000002
|
---|
865 | #define DIEFF_CARTESIAN 0x00000010
|
---|
866 | #define DIEFF_POLAR 0x00000020
|
---|
867 | #define DIEFF_SPHERICAL 0x00000040
|
---|
868 |
|
---|
869 | #define DIEP_DURATION 0x00000001
|
---|
870 | #define DIEP_SAMPLEPERIOD 0x00000002
|
---|
871 | #define DIEP_GAIN 0x00000004
|
---|
872 | #define DIEP_TRIGGERBUTTON 0x00000008
|
---|
873 | #define DIEP_TRIGGERREPEATINTERVAL 0x00000010
|
---|
874 | #define DIEP_AXES 0x00000020
|
---|
875 | #define DIEP_DIRECTION 0x00000040
|
---|
876 | #define DIEP_ENVELOPE 0x00000080
|
---|
877 | #define DIEP_TYPESPECIFICPARAMS 0x00000100
|
---|
878 | #define DIEP_STARTDELAY 0x00000200
|
---|
879 | #define DIEP_ALLPARAMS_DX5 0x000001FF
|
---|
880 | #define DIEP_ALLPARAMS 0x000003FF
|
---|
881 | #define DIEP_START 0x20000000
|
---|
882 | #define DIEP_NORESTART 0x40000000
|
---|
883 | #define DIEP_NODOWNLOAD 0x80000000
|
---|
884 | #define DIEB_NOTRIGGER 0xFFFFFFFF
|
---|
885 |
|
---|
886 | #define DIES_SOLO 0x00000001
|
---|
887 | #define DIES_NODOWNLOAD 0x80000000
|
---|
888 |
|
---|
889 | #define DIEGES_PLAYING 0x00000001
|
---|
890 | #define DIEGES_EMULATED 0x00000002
|
---|
891 |
|
---|
892 | #define DI_DEGREES 100
|
---|
893 | #define DI_FFNOMINALMAX 10000
|
---|
894 | #define DI_SECONDS 1000000
|
---|
895 |
|
---|
896 | typedef struct DICONSTANTFORCE {
|
---|
897 | LONG lMagnitude;
|
---|
898 | } DICONSTANTFORCE, *LPDICONSTANTFORCE;
|
---|
899 | typedef const DICONSTANTFORCE *LPCDICONSTANTFORCE;
|
---|
900 |
|
---|
901 | typedef struct DIRAMPFORCE {
|
---|
902 | LONG lStart;
|
---|
903 | LONG lEnd;
|
---|
904 | } DIRAMPFORCE, *LPDIRAMPFORCE;
|
---|
905 | typedef const DIRAMPFORCE *LPCDIRAMPFORCE;
|
---|
906 |
|
---|
907 | typedef struct DIPERIODIC {
|
---|
908 | DWORD dwMagnitude;
|
---|
909 | LONG lOffset;
|
---|
910 | DWORD dwPhase;
|
---|
911 | DWORD dwPeriod;
|
---|
912 | } DIPERIODIC, *LPDIPERIODIC;
|
---|
913 | typedef const DIPERIODIC *LPCDIPERIODIC;
|
---|
914 |
|
---|
915 | typedef struct DICONDITION {
|
---|
916 | LONG lOffset;
|
---|
917 | LONG lPositiveCoefficient;
|
---|
918 | LONG lNegativeCoefficient;
|
---|
919 | DWORD dwPositiveSaturation;
|
---|
920 | DWORD dwNegativeSaturation;
|
---|
921 | LONG lDeadBand;
|
---|
922 | } DICONDITION, *LPDICONDITION;
|
---|
923 | typedef const DICONDITION *LPCDICONDITION;
|
---|
924 |
|
---|
925 | typedef struct DICUSTOMFORCE {
|
---|
926 | DWORD cChannels;
|
---|
927 | DWORD dwSamplePeriod;
|
---|
928 | DWORD cSamples;
|
---|
929 | LPLONG rglForceData;
|
---|
930 | } DICUSTOMFORCE, *LPDICUSTOMFORCE;
|
---|
931 | typedef const DICUSTOMFORCE *LPCDICUSTOMFORCE;
|
---|
932 |
|
---|
933 | typedef struct DIENVELOPE {
|
---|
934 | DWORD dwSize;
|
---|
935 | DWORD dwAttackLevel;
|
---|
936 | DWORD dwAttackTime;
|
---|
937 | DWORD dwFadeLevel;
|
---|
938 | DWORD dwFadeTime;
|
---|
939 | } DIENVELOPE, *LPDIENVELOPE;
|
---|
940 | typedef const DIENVELOPE *LPCDIENVELOPE;
|
---|
941 |
|
---|
942 | typedef struct DIEFFECT_DX5 {
|
---|
943 | DWORD dwSize;
|
---|
944 | DWORD dwFlags;
|
---|
945 | DWORD dwDuration;
|
---|
946 | DWORD dwSamplePeriod;
|
---|
947 | DWORD dwGain;
|
---|
948 | DWORD dwTriggerButton;
|
---|
949 | DWORD dwTriggerRepeatInterval;
|
---|
950 | DWORD cAxes;
|
---|
951 | LPDWORD rgdwAxes;
|
---|
952 | LPLONG rglDirection;
|
---|
953 | LPDIENVELOPE lpEnvelope;
|
---|
954 | DWORD cbTypeSpecificParams;
|
---|
955 | LPVOID lpvTypeSpecificParams;
|
---|
956 | } DIEFFECT_DX5, *LPDIEFFECT_DX5;
|
---|
957 | typedef const DIEFFECT_DX5 *LPCDIEFFECT_DX5;
|
---|
958 |
|
---|
959 | typedef struct DIEFFECT {
|
---|
960 | DWORD dwSize;
|
---|
961 | DWORD dwFlags;
|
---|
962 | DWORD dwDuration;
|
---|
963 | DWORD dwSamplePeriod;
|
---|
964 | DWORD dwGain;
|
---|
965 | DWORD dwTriggerButton;
|
---|
966 | DWORD dwTriggerRepeatInterval;
|
---|
967 | DWORD cAxes;
|
---|
968 | LPDWORD rgdwAxes;
|
---|
969 | LPLONG rglDirection;
|
---|
970 | LPDIENVELOPE lpEnvelope;
|
---|
971 | DWORD cbTypeSpecificParams;
|
---|
972 | LPVOID lpvTypeSpecificParams;
|
---|
973 | DWORD dwStartDelay;
|
---|
974 | } DIEFFECT, *LPDIEFFECT;
|
---|
975 | typedef const DIEFFECT *LPCDIEFFECT;
|
---|
976 | typedef DIEFFECT DIEFFECT_DX6;
|
---|
977 | typedef LPDIEFFECT LPDIEFFECT_DX6;
|
---|
978 |
|
---|
979 | typedef struct DIEFFECTINFOA {
|
---|
980 | DWORD dwSize;
|
---|
981 | GUID guid;
|
---|
982 | DWORD dwEffType;
|
---|
983 | DWORD dwStaticParams;
|
---|
984 | DWORD dwDynamicParams;
|
---|
985 | CHAR tszName[MAX_PATH];
|
---|
986 | } DIEFFECTINFOA, *LPDIEFFECTINFOA;
|
---|
987 | typedef const DIEFFECTINFOA *LPCDIEFFECTINFOA;
|
---|
988 |
|
---|
989 | typedef struct DIEFFECTINFOW {
|
---|
990 | DWORD dwSize;
|
---|
991 | GUID guid;
|
---|
992 | DWORD dwEffType;
|
---|
993 | DWORD dwStaticParams;
|
---|
994 | DWORD dwDynamicParams;
|
---|
995 | WCHAR tszName[MAX_PATH];
|
---|
996 | } DIEFFECTINFOW, *LPDIEFFECTINFOW;
|
---|
997 | typedef const DIEFFECTINFOW *LPCDIEFFECTINFOW;
|
---|
998 |
|
---|
999 | DECL_WINELIB_TYPE_AW(DIEFFECTINFO)
|
---|
1000 | DECL_WINELIB_TYPE_AW(LPDIEFFECTINFO)
|
---|
1001 | DECL_WINELIB_TYPE_AW(LPCDIEFFECTINFO)
|
---|
1002 |
|
---|
1003 | typedef BOOL (CALLBACK *LPDIENUMEFFECTSCALLBACKA)(LPCDIEFFECTINFOA, LPVOID);
|
---|
1004 | typedef BOOL (CALLBACK *LPDIENUMEFFECTSCALLBACKW)(LPCDIEFFECTINFOW, LPVOID);
|
---|
1005 |
|
---|
1006 | typedef struct DIEFFESCAPE {
|
---|
1007 | DWORD dwSize;
|
---|
1008 | DWORD dwCommand;
|
---|
1009 | LPVOID lpvInBuffer;
|
---|
1010 | DWORD cbInBuffer;
|
---|
1011 | LPVOID lpvOutBuffer;
|
---|
1012 | DWORD cbOutBuffer;
|
---|
1013 | } DIEFFESCAPE, *LPDIEFFESCAPE;
|
---|
1014 |
|
---|
1015 | typedef struct DIJOYSTATE {
|
---|
1016 | LONG lX;
|
---|
1017 | LONG lY;
|
---|
1018 | LONG lZ;
|
---|
1019 | LONG lRx;
|
---|
1020 | LONG lRy;
|
---|
1021 | LONG lRz;
|
---|
1022 | LONG rglSlider[2];
|
---|
1023 | DWORD rgdwPOV[4];
|
---|
1024 | BYTE rgbButtons[32];
|
---|
1025 | } DIJOYSTATE, *LPDIJOYSTATE;
|
---|
1026 |
|
---|
1027 | typedef struct DIJOYSTATE2 {
|
---|
1028 | LONG lX;
|
---|
1029 | LONG lY;
|
---|
1030 | LONG lZ;
|
---|
1031 | LONG lRx;
|
---|
1032 | LONG lRy;
|
---|
1033 | LONG lRz;
|
---|
1034 | LONG rglSlider[2];
|
---|
1035 | DWORD rgdwPOV[4];
|
---|
1036 | BYTE rgbButtons[128];
|
---|
1037 | LONG lVX; /* 'v' as in velocity */
|
---|
1038 | LONG lVY;
|
---|
1039 | LONG lVZ;
|
---|
1040 | LONG lVRx;
|
---|
1041 | LONG lVRy;
|
---|
1042 | LONG lVRz;
|
---|
1043 | LONG rglVSlider[2];
|
---|
1044 | LONG lAX; /* 'a' as in acceleration */
|
---|
1045 | LONG lAY;
|
---|
1046 | LONG lAZ;
|
---|
1047 | LONG lARx;
|
---|
1048 | LONG lARy;
|
---|
1049 | LONG lARz;
|
---|
1050 | LONG rglASlider[2];
|
---|
1051 | LONG lFX; /* 'f' as in force */
|
---|
1052 | LONG lFY;
|
---|
1053 | LONG lFZ;
|
---|
1054 | LONG lFRx; /* 'fr' as in rotational force aka torque */
|
---|
1055 | LONG lFRy;
|
---|
1056 | LONG lFRz;
|
---|
1057 | LONG rglFSlider[2];
|
---|
1058 | } DIJOYSTATE2, *LPDIJOYSTATE2;
|
---|
1059 |
|
---|
1060 | #define DIJOFS_X FIELD_OFFSET(DIJOYSTATE, lX)
|
---|
1061 | #define DIJOFS_Y FIELD_OFFSET(DIJOYSTATE, lY)
|
---|
1062 | #define DIJOFS_Z FIELD_OFFSET(DIJOYSTATE, lZ)
|
---|
1063 | #define DIJOFS_RX FIELD_OFFSET(DIJOYSTATE, lRx)
|
---|
1064 | #define DIJOFS_RY FIELD_OFFSET(DIJOYSTATE, lRy)
|
---|
1065 | #define DIJOFS_RZ FIELD_OFFSET(DIJOYSTATE, lRz)
|
---|
1066 | #define DIJOFS_SLIDER(n) (FIELD_OFFSET(DIJOYSTATE, rglSlider) + \
|
---|
1067 | (n) * sizeof(LONG))
|
---|
1068 | #define DIJOFS_POV(n) (FIELD_OFFSET(DIJOYSTATE, rgdwPOV) + \
|
---|
1069 | (n) * sizeof(DWORD))
|
---|
1070 | #define DIJOFS_BUTTON(n) (FIELD_OFFSET(DIJOYSTATE, rgbButtons) + (n))
|
---|
1071 | #define DIJOFS_BUTTON0 DIJOFS_BUTTON(0)
|
---|
1072 | #define DIJOFS_BUTTON1 DIJOFS_BUTTON(1)
|
---|
1073 | #define DIJOFS_BUTTON2 DIJOFS_BUTTON(2)
|
---|
1074 | #define DIJOFS_BUTTON3 DIJOFS_BUTTON(3)
|
---|
1075 | #define DIJOFS_BUTTON4 DIJOFS_BUTTON(4)
|
---|
1076 | #define DIJOFS_BUTTON5 DIJOFS_BUTTON(5)
|
---|
1077 | #define DIJOFS_BUTTON6 DIJOFS_BUTTON(6)
|
---|
1078 | #define DIJOFS_BUTTON7 DIJOFS_BUTTON(7)
|
---|
1079 | #define DIJOFS_BUTTON8 DIJOFS_BUTTON(8)
|
---|
1080 | #define DIJOFS_BUTTON9 DIJOFS_BUTTON(9)
|
---|
1081 | #define DIJOFS_BUTTON10 DIJOFS_BUTTON(10)
|
---|
1082 | #define DIJOFS_BUTTON11 DIJOFS_BUTTON(11)
|
---|
1083 | #define DIJOFS_BUTTON12 DIJOFS_BUTTON(12)
|
---|
1084 | #define DIJOFS_BUTTON13 DIJOFS_BUTTON(13)
|
---|
1085 | #define DIJOFS_BUTTON14 DIJOFS_BUTTON(14)
|
---|
1086 | #define DIJOFS_BUTTON15 DIJOFS_BUTTON(15)
|
---|
1087 | #define DIJOFS_BUTTON16 DIJOFS_BUTTON(16)
|
---|
1088 | #define DIJOFS_BUTTON17 DIJOFS_BUTTON(17)
|
---|
1089 | #define DIJOFS_BUTTON18 DIJOFS_BUTTON(18)
|
---|
1090 | #define DIJOFS_BUTTON19 DIJOFS_BUTTON(19)
|
---|
1091 | #define DIJOFS_BUTTON20 DIJOFS_BUTTON(20)
|
---|
1092 | #define DIJOFS_BUTTON21 DIJOFS_BUTTON(21)
|
---|
1093 | #define DIJOFS_BUTTON22 DIJOFS_BUTTON(22)
|
---|
1094 | #define DIJOFS_BUTTON23 DIJOFS_BUTTON(23)
|
---|
1095 | #define DIJOFS_BUTTON24 DIJOFS_BUTTON(24)
|
---|
1096 | #define DIJOFS_BUTTON25 DIJOFS_BUTTON(25)
|
---|
1097 | #define DIJOFS_BUTTON26 DIJOFS_BUTTON(26)
|
---|
1098 | #define DIJOFS_BUTTON27 DIJOFS_BUTTON(27)
|
---|
1099 | #define DIJOFS_BUTTON28 DIJOFS_BUTTON(28)
|
---|
1100 | #define DIJOFS_BUTTON29 DIJOFS_BUTTON(29)
|
---|
1101 | #define DIJOFS_BUTTON30 DIJOFS_BUTTON(30)
|
---|
1102 | #define DIJOFS_BUTTON31 DIJOFS_BUTTON(31)
|
---|
1103 |
|
---|
1104 | /* DInput 7 structures, types */
|
---|
1105 | typedef struct DIFILEEFFECT {
|
---|
1106 | DWORD dwSize;
|
---|
1107 | GUID GuidEffect;
|
---|
1108 | LPCDIEFFECT lpDiEffect;
|
---|
1109 | CHAR szFriendlyName[MAX_PATH];
|
---|
1110 | } DIFILEEFFECT, *LPDIFILEEFFECT;
|
---|
1111 |
|
---|
1112 | typedef const DIFILEEFFECT *LPCDIFILEEFFECT;
|
---|
1113 | typedef BOOL (CALLBACK *LPDIENUMEFFECTSINFILECALLBACK)(LPCDIFILEEFFECT , LPVOID);
|
---|
1114 |
|
---|
1115 | /* DInput 8 structures and types */
|
---|
1116 | typedef struct _DIACTIONA {
|
---|
1117 | UINT_PTR uAppData;
|
---|
1118 | DWORD dwSemantic;
|
---|
1119 | DWORD dwFlags;
|
---|
1120 | union {
|
---|
1121 | LPCSTR lptszActionName;
|
---|
1122 | UINT uResIdString;
|
---|
1123 | } DUMMYUNIONNAME;
|
---|
1124 | GUID guidInstance;
|
---|
1125 | DWORD dwObjID;
|
---|
1126 | DWORD dwHow;
|
---|
1127 | } DIACTIONA, *LPDIACTIONA;
|
---|
1128 | typedef const DIACTIONA *LPCDIACTIONA;
|
---|
1129 |
|
---|
1130 | typedef struct _DIACTIONW {
|
---|
1131 | UINT_PTR uAppData;
|
---|
1132 | DWORD dwSemantic;
|
---|
1133 | DWORD dwFlags;
|
---|
1134 | union {
|
---|
1135 | LPCWSTR lptszActionName;
|
---|
1136 | UINT uResIdString;
|
---|
1137 | } DUMMYUNIONNAME;
|
---|
1138 | GUID guidInstance;
|
---|
1139 | DWORD dwObjID;
|
---|
1140 | DWORD dwHow;
|
---|
1141 | } DIACTIONW, *LPDIACTIONW;
|
---|
1142 | typedef const DIACTIONW *LPCDIACTIONW;
|
---|
1143 |
|
---|
1144 | DECL_WINELIB_TYPE_AW(DIACTION)
|
---|
1145 | DECL_WINELIB_TYPE_AW(LPDIACTION)
|
---|
1146 | DECL_WINELIB_TYPE_AW(LPCDIACTION)
|
---|
1147 |
|
---|
1148 | #define DIA_FORCEFEEDBACK 0x00000001
|
---|
1149 | #define DIA_APPMAPPED 0x00000002
|
---|
1150 | #define DIA_APPNOMAP 0x00000004
|
---|
1151 | #define DIA_NORANGE 0x00000008
|
---|
1152 | #define DIA_APPFIXED 0x00000010
|
---|
1153 |
|
---|
1154 | #define DIAH_UNMAPPED 0x00000000
|
---|
1155 | #define DIAH_USERCONFIG 0x00000001
|
---|
1156 | #define DIAH_APPREQUESTED 0x00000002
|
---|
1157 | #define DIAH_HWAPP 0x00000004
|
---|
1158 | #define DIAH_HWDEFAULT 0x00000008
|
---|
1159 | #define DIAH_DEFAULT 0x00000020
|
---|
1160 | #define DIAH_ERROR 0x80000000
|
---|
1161 |
|
---|
1162 | typedef struct _DIACTIONFORMATA {
|
---|
1163 | DWORD dwSize;
|
---|
1164 | DWORD dwActionSize;
|
---|
1165 | DWORD dwDataSize;
|
---|
1166 | DWORD dwNumActions;
|
---|
1167 | LPDIACTIONA rgoAction;
|
---|
1168 | GUID guidActionMap;
|
---|
1169 | DWORD dwGenre;
|
---|
1170 | DWORD dwBufferSize;
|
---|
1171 | LONG lAxisMin;
|
---|
1172 | LONG lAxisMax;
|
---|
1173 | HINSTANCE hInstString;
|
---|
1174 | FILETIME ftTimeStamp;
|
---|
1175 | DWORD dwCRC;
|
---|
1176 | CHAR tszActionMap[MAX_PATH];
|
---|
1177 | } DIACTIONFORMATA, *LPDIACTIONFORMATA;
|
---|
1178 | typedef const DIACTIONFORMATA *LPCDIACTIONFORMATA;
|
---|
1179 |
|
---|
1180 | typedef struct _DIACTIONFORMATW {
|
---|
1181 | DWORD dwSize;
|
---|
1182 | DWORD dwActionSize;
|
---|
1183 | DWORD dwDataSize;
|
---|
1184 | DWORD dwNumActions;
|
---|
1185 | LPDIACTIONW rgoAction;
|
---|
1186 | GUID guidActionMap;
|
---|
1187 | DWORD dwGenre;
|
---|
1188 | DWORD dwBufferSize;
|
---|
1189 | LONG lAxisMin;
|
---|
1190 | LONG lAxisMax;
|
---|
1191 | HINSTANCE hInstString;
|
---|
1192 | FILETIME ftTimeStamp;
|
---|
1193 | DWORD dwCRC;
|
---|
1194 | WCHAR tszActionMap[MAX_PATH];
|
---|
1195 | } DIACTIONFORMATW, *LPDIACTIONFORMATW;
|
---|
1196 | typedef const DIACTIONFORMATW *LPCDIACTIONFORMATW;
|
---|
1197 |
|
---|
1198 | DECL_WINELIB_TYPE_AW(DIACTIONFORMAT)
|
---|
1199 | DECL_WINELIB_TYPE_AW(LPDIACTIONFORMAT)
|
---|
1200 | DECL_WINELIB_TYPE_AW(LPCDIACTIONFORMAT)
|
---|
1201 |
|
---|
1202 | #define DIAFTS_NEWDEVICELOW 0xFFFFFFFF
|
---|
1203 | #define DIAFTS_NEWDEVICEHIGH 0xFFFFFFFF
|
---|
1204 | #define DIAFTS_UNUSEDDEVICELOW 0x00000000
|
---|
1205 | #define DIAFTS_UNUSEDDEVICEHIGH 0x00000000
|
---|
1206 |
|
---|
1207 | #define DIDBAM_DEFAULT 0x00000000
|
---|
1208 | #define DIDBAM_PRESERVE 0x00000001
|
---|
1209 | #define DIDBAM_INITIALIZE 0x00000002
|
---|
1210 | #define DIDBAM_HWDEFAULTS 0x00000004
|
---|
1211 |
|
---|
1212 | #define DIDSAM_DEFAULT 0x00000000
|
---|
1213 | #define DIDSAM_NOUSER 0x00000001
|
---|
1214 | #define DIDSAM_FORCESAVE 0x00000002
|
---|
1215 |
|
---|
1216 | #define DICD_DEFAULT 0x00000000
|
---|
1217 | #define DICD_EDIT 0x00000001
|
---|
1218 |
|
---|
1219 | #ifndef D3DCOLOR_DEFINED
|
---|
1220 | typedef DWORD D3DCOLOR;
|
---|
1221 | #define D3DCOLOR_DEFINED
|
---|
1222 | #endif
|
---|
1223 |
|
---|
1224 | typedef struct _DICOLORSET {
|
---|
1225 | DWORD dwSize;
|
---|
1226 | D3DCOLOR cTextFore;
|
---|
1227 | D3DCOLOR cTextHighlight;
|
---|
1228 | D3DCOLOR cCalloutLine;
|
---|
1229 | D3DCOLOR cCalloutHighlight;
|
---|
1230 | D3DCOLOR cBorder;
|
---|
1231 | D3DCOLOR cControlFill;
|
---|
1232 | D3DCOLOR cHighlightFill;
|
---|
1233 | D3DCOLOR cAreaFill;
|
---|
1234 | } DICOLORSET, *LPDICOLORSET;
|
---|
1235 | typedef const DICOLORSET *LPCDICOLORSET;
|
---|
1236 |
|
---|
1237 | typedef struct _DICONFIGUREDEVICESPARAMSA {
|
---|
1238 | DWORD dwSize;
|
---|
1239 | DWORD dwcUsers;
|
---|
1240 | LPSTR lptszUserNames;
|
---|
1241 | DWORD dwcFormats;
|
---|
1242 | LPDIACTIONFORMATA lprgFormats;
|
---|
1243 | HWND hwnd;
|
---|
1244 | DICOLORSET dics;
|
---|
1245 | LPUNKNOWN lpUnkDDSTarget;
|
---|
1246 | } DICONFIGUREDEVICESPARAMSA, *LPDICONFIGUREDEVICESPARAMSA;
|
---|
1247 | typedef const DICONFIGUREDEVICESPARAMSA *LPCDICONFIGUREDEVICESPARAMSA;
|
---|
1248 |
|
---|
1249 | typedef struct _DICONFIGUREDEVICESPARAMSW {
|
---|
1250 | DWORD dwSize;
|
---|
1251 | DWORD dwcUsers;
|
---|
1252 | LPWSTR lptszUserNames;
|
---|
1253 | DWORD dwcFormats;
|
---|
1254 | LPDIACTIONFORMATW lprgFormats;
|
---|
1255 | HWND hwnd;
|
---|
1256 | DICOLORSET dics;
|
---|
1257 | LPUNKNOWN lpUnkDDSTarget;
|
---|
1258 | } DICONFIGUREDEVICESPARAMSW, *LPDICONFIGUREDEVICESPARAMSW;
|
---|
1259 | typedef const DICONFIGUREDEVICESPARAMSW *LPCDICONFIGUREDEVICESPARAMSW;
|
---|
1260 |
|
---|
1261 | DECL_WINELIB_TYPE_AW(DICONFIGUREDEVICESPARAMS)
|
---|
1262 | DECL_WINELIB_TYPE_AW(LPDICONFIGUREDEVICESPARAMS)
|
---|
1263 | DECL_WINELIB_TYPE_AW(LPCDICONFIGUREDEVICESPARAMS)
|
---|
1264 |
|
---|
1265 | #define DIDIFT_CONFIGURATION 0x00000001
|
---|
1266 | #define DIDIFT_OVERLAY 0x00000002
|
---|
1267 |
|
---|
1268 | #define DIDAL_CENTERED 0x00000000
|
---|
1269 | #define DIDAL_LEFTALIGNED 0x00000001
|
---|
1270 | #define DIDAL_RIGHTALIGNED 0x00000002
|
---|
1271 | #define DIDAL_MIDDLE 0x00000000
|
---|
1272 | #define DIDAL_TOPALIGNED 0x00000004
|
---|
1273 | #define DIDAL_BOTTOMALIGNED 0x00000008
|
---|
1274 |
|
---|
1275 | typedef struct _DIDEVICEIMAGEINFOA {
|
---|
1276 | CHAR tszImagePath[MAX_PATH];
|
---|
1277 | DWORD dwFlags;
|
---|
1278 | DWORD dwViewID;
|
---|
1279 | RECT rcOverlay;
|
---|
1280 | DWORD dwObjID;
|
---|
1281 | DWORD dwcValidPts;
|
---|
1282 | POINT rgptCalloutLine[5];
|
---|
1283 | RECT rcCalloutRect;
|
---|
1284 | DWORD dwTextAlign;
|
---|
1285 | } DIDEVICEIMAGEINFOA, *LPDIDEVICEIMAGEINFOA;
|
---|
1286 | typedef const DIDEVICEIMAGEINFOA *LPCDIDEVICEIMAGEINFOA;
|
---|
1287 |
|
---|
1288 | typedef struct _DIDEVICEIMAGEINFOW {
|
---|
1289 | WCHAR tszImagePath[MAX_PATH];
|
---|
1290 | DWORD dwFlags;
|
---|
1291 | DWORD dwViewID;
|
---|
1292 | RECT rcOverlay;
|
---|
1293 | DWORD dwObjID;
|
---|
1294 | DWORD dwcValidPts;
|
---|
1295 | POINT rgptCalloutLine[5];
|
---|
1296 | RECT rcCalloutRect;
|
---|
1297 | DWORD dwTextAlign;
|
---|
1298 | } DIDEVICEIMAGEINFOW, *LPDIDEVICEIMAGEINFOW;
|
---|
1299 | typedef const DIDEVICEIMAGEINFOW *LPCDIDEVICEIMAGEINFOW;
|
---|
1300 |
|
---|
1301 | DECL_WINELIB_TYPE_AW(DIDEVICEIMAGEINFO)
|
---|
1302 | DECL_WINELIB_TYPE_AW(LPDIDEVICEIMAGEINFO)
|
---|
1303 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEIMAGEINFO)
|
---|
1304 |
|
---|
1305 | typedef struct _DIDEVICEIMAGEINFOHEADERA {
|
---|
1306 | DWORD dwSize;
|
---|
1307 | DWORD dwSizeImageInfo;
|
---|
1308 | DWORD dwcViews;
|
---|
1309 | DWORD dwcButtons;
|
---|
1310 | DWORD dwcAxes;
|
---|
1311 | DWORD dwcPOVs;
|
---|
1312 | DWORD dwBufferSize;
|
---|
1313 | DWORD dwBufferUsed;
|
---|
1314 | LPDIDEVICEIMAGEINFOA lprgImageInfoArray;
|
---|
1315 | } DIDEVICEIMAGEINFOHEADERA, *LPDIDEVICEIMAGEINFOHEADERA;
|
---|
1316 | typedef const DIDEVICEIMAGEINFOHEADERA *LPCDIDEVICEIMAGEINFOHEADERA;
|
---|
1317 |
|
---|
1318 | typedef struct _DIDEVICEIMAGEINFOHEADERW {
|
---|
1319 | DWORD dwSize;
|
---|
1320 | DWORD dwSizeImageInfo;
|
---|
1321 | DWORD dwcViews;
|
---|
1322 | DWORD dwcButtons;
|
---|
1323 | DWORD dwcAxes;
|
---|
1324 | DWORD dwcPOVs;
|
---|
1325 | DWORD dwBufferSize;
|
---|
1326 | DWORD dwBufferUsed;
|
---|
1327 | LPDIDEVICEIMAGEINFOW lprgImageInfoArray;
|
---|
1328 | } DIDEVICEIMAGEINFOHEADERW, *LPDIDEVICEIMAGEINFOHEADERW;
|
---|
1329 | typedef const DIDEVICEIMAGEINFOHEADERW *LPCDIDEVICEIMAGEINFOHEADERW;
|
---|
1330 |
|
---|
1331 | DECL_WINELIB_TYPE_AW(DIDEVICEIMAGEINFOHEADER)
|
---|
1332 | DECL_WINELIB_TYPE_AW(LPDIDEVICEIMAGEINFOHEADER)
|
---|
1333 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEIMAGEINFOHEADER)
|
---|
1334 |
|
---|
1335 |
|
---|
1336 | /*****************************************************************************
|
---|
1337 | * IDirectInputEffect interface
|
---|
1338 | */
|
---|
1339 | #define INTERFACE IDirectInputEffect
|
---|
1340 | DECLARE_INTERFACE_(IDirectInputEffect,IUnknown)
|
---|
1341 | {
|
---|
1342 | /*** IUnknown methods ***/
|
---|
1343 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1344 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1345 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1346 | /*** IDirectInputEffect methods ***/
|
---|
1347 | STDMETHOD(Initialize)(THIS_ HINSTANCE, DWORD, REFGUID) PURE;
|
---|
1348 | STDMETHOD(GetEffectGuid)(THIS_ LPGUID) PURE;
|
---|
1349 | STDMETHOD(GetParameters)(THIS_ LPDIEFFECT, DWORD) PURE;
|
---|
1350 | STDMETHOD(SetParameters)(THIS_ LPCDIEFFECT, DWORD) PURE;
|
---|
1351 | STDMETHOD(Start)(THIS_ DWORD, DWORD) PURE;
|
---|
1352 | STDMETHOD(Stop)(THIS) PURE;
|
---|
1353 | STDMETHOD(GetEffectStatus)(THIS_ LPDWORD) PURE;
|
---|
1354 | STDMETHOD(Download)(THIS) PURE;
|
---|
1355 | STDMETHOD(Unload)(THIS) PURE;
|
---|
1356 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE;
|
---|
1357 | };
|
---|
1358 | #undef INTERFACE
|
---|
1359 |
|
---|
1360 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1361 | /*** IUnknown methods ***/
|
---|
1362 | #define IDirectInputEffect_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1363 | #define IDirectInputEffect_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1364 | #define IDirectInputEffect_Release(p) (p)->lpVtbl->Release(p)
|
---|
1365 | /*** IDirectInputEffect methods ***/
|
---|
1366 | #define IDirectInputEffect_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
1367 | #define IDirectInputEffect_GetEffectGuid(p,a) (p)->lpVtbl->GetEffectGuid(p,a)
|
---|
1368 | #define IDirectInputEffect_GetParameters(p,a,b) (p)->lpVtbl->GetParameters(p,a,b)
|
---|
1369 | #define IDirectInputEffect_SetParameters(p,a,b) (p)->lpVtbl->SetParameters(p,a,b)
|
---|
1370 | #define IDirectInputEffect_Start(p,a,b) (p)->lpVtbl->Start(p,a,b)
|
---|
1371 | #define IDirectInputEffect_Stop(p) (p)->lpVtbl->Stop(p)
|
---|
1372 | #define IDirectInputEffect_GetEffectStatus(p,a) (p)->lpVtbl->GetEffectStatus(p,a)
|
---|
1373 | #define IDirectInputEffect_Download(p) (p)->lpVtbl->Download(p)
|
---|
1374 | #define IDirectInputEffect_Unload(p) (p)->lpVtbl->Unload(p)
|
---|
1375 | #define IDirectInputEffect_Escape(p,a) (p)->lpVtbl->Escape(p,a)
|
---|
1376 | #else
|
---|
1377 | /*** IUnknown methods ***/
|
---|
1378 | #define IDirectInputEffect_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1379 | #define IDirectInputEffect_AddRef(p) (p)->AddRef()
|
---|
1380 | #define IDirectInputEffect_Release(p) (p)->Release()
|
---|
1381 | /*** IDirectInputEffect methods ***/
|
---|
1382 | #define IDirectInputEffect_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
1383 | #define IDirectInputEffect_GetEffectGuid(p,a) (p)->GetEffectGuid(a)
|
---|
1384 | #define IDirectInputEffect_GetParameters(p,a,b) (p)->GetParameters(a,b)
|
---|
1385 | #define IDirectInputEffect_SetParameters(p,a,b) (p)->SetParameters(a,b)
|
---|
1386 | #define IDirectInputEffect_Start(p,a,b) (p)->Start(a,b)
|
---|
1387 | #define IDirectInputEffect_Stop(p) (p)->Stop()
|
---|
1388 | #define IDirectInputEffect_GetEffectStatus(p,a) (p)->GetEffectStatus(a)
|
---|
1389 | #define IDirectInputEffect_Download(p) (p)->Download()
|
---|
1390 | #define IDirectInputEffect_Unload(p) (p)->Unload()
|
---|
1391 | #define IDirectInputEffect_Escape(p,a) (p)->Escape(a)
|
---|
1392 | #endif
|
---|
1393 |
|
---|
1394 |
|
---|
1395 | /*****************************************************************************
|
---|
1396 | * IDirectInputDeviceA interface
|
---|
1397 | */
|
---|
1398 | #define INTERFACE IDirectInputDeviceA
|
---|
1399 | DECLARE_INTERFACE_(IDirectInputDeviceA,IUnknown)
|
---|
1400 | {
|
---|
1401 | /*** IUnknown methods ***/
|
---|
1402 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1403 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1404 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1405 | /*** IDirectInputDeviceA methods ***/
|
---|
1406 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
1407 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
1408 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
1409 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
1410 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
1411 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
1412 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
1413 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
1414 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
1415 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
1416 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
1417 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
1418 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE;
|
---|
1419 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
1420 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
1421 | };
|
---|
1422 | #undef INTERFACE
|
---|
1423 |
|
---|
1424 | /*****************************************************************************
|
---|
1425 | * IDirectInputDeviceW interface
|
---|
1426 | */
|
---|
1427 | #define INTERFACE IDirectInputDeviceW
|
---|
1428 | DECLARE_INTERFACE_(IDirectInputDeviceW,IUnknown)
|
---|
1429 | {
|
---|
1430 | /*** IUnknown methods ***/
|
---|
1431 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1432 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1433 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1434 | /*** IDirectInputDeviceW methods ***/
|
---|
1435 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
1436 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
1437 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
1438 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
1439 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
1440 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
1441 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
1442 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
1443 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
1444 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
1445 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
1446 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
1447 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE;
|
---|
1448 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
1449 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
1450 | };
|
---|
1451 | #undef INTERFACE
|
---|
1452 |
|
---|
1453 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1454 | /*** IUnknown methods ***/
|
---|
1455 | #define IDirectInputDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1456 | #define IDirectInputDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1457 | #define IDirectInputDevice_Release(p) (p)->lpVtbl->Release(p)
|
---|
1458 | /*** IDirectInputDevice methods ***/
|
---|
1459 | #define IDirectInputDevice_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
|
---|
1460 | #define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
|
---|
1461 | #define IDirectInputDevice_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
|
---|
1462 | #define IDirectInputDevice_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
|
---|
1463 | #define IDirectInputDevice_Acquire(p) (p)->lpVtbl->Acquire(p)
|
---|
1464 | #define IDirectInputDevice_Unacquire(p) (p)->lpVtbl->Unacquire(p)
|
---|
1465 | #define IDirectInputDevice_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
|
---|
1466 | #define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
|
---|
1467 | #define IDirectInputDevice_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
|
---|
1468 | #define IDirectInputDevice_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
|
---|
1469 | #define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
1470 | #define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
|
---|
1471 | #define IDirectInputDevice_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
|
---|
1472 | #define IDirectInputDevice_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
1473 | #define IDirectInputDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
1474 | #else
|
---|
1475 | /*** IUnknown methods ***/
|
---|
1476 | #define IDirectInputDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1477 | #define IDirectInputDevice_AddRef(p) (p)->AddRef()
|
---|
1478 | #define IDirectInputDevice_Release(p) (p)->Release()
|
---|
1479 | /*** IDirectInputDevice methods ***/
|
---|
1480 | #define IDirectInputDevice_GetCapabilities(p,a) (p)->GetCapabilities(a)
|
---|
1481 | #define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
|
---|
1482 | #define IDirectInputDevice_GetProperty(p,a,b) (p)->GetProperty(a,b)
|
---|
1483 | #define IDirectInputDevice_SetProperty(p,a,b) (p)->SetProperty(a,b)
|
---|
1484 | #define IDirectInputDevice_Acquire(p) (p)->Acquire()
|
---|
1485 | #define IDirectInputDevice_Unacquire(p) (p)->Unacquire()
|
---|
1486 | #define IDirectInputDevice_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
|
---|
1487 | #define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
|
---|
1488 | #define IDirectInputDevice_SetDataFormat(p,a) (p)->SetDataFormat(a)
|
---|
1489 | #define IDirectInputDevice_SetEventNotification(p,a) (p)->SetEventNotification(a)
|
---|
1490 | #define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
1491 | #define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
|
---|
1492 | #define IDirectInputDevice_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
|
---|
1493 | #define IDirectInputDevice_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
1494 | #define IDirectInputDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
1495 | #endif
|
---|
1496 |
|
---|
1497 |
|
---|
1498 | /*****************************************************************************
|
---|
1499 | * IDirectInputDevice2A interface
|
---|
1500 | */
|
---|
1501 | #define INTERFACE IDirectInputDevice2A
|
---|
1502 | DECLARE_INTERFACE_(IDirectInputDevice2A,IDirectInputDeviceA)
|
---|
1503 | {
|
---|
1504 | /*** IUnknown methods ***/
|
---|
1505 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1506 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1507 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1508 | /*** IDirectInputDeviceA methods ***/
|
---|
1509 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
1510 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
1511 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
1512 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
1513 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
1514 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
1515 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
1516 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
1517 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
1518 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
1519 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
1520 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
1521 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE;
|
---|
1522 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
1523 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
1524 | /*** IDirectInputDevice2A methods ***/
|
---|
1525 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
1526 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
1527 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA pdei, REFGUID rguid) PURE;
|
---|
1528 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
1529 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
1530 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
1531 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
1532 | STDMETHOD(Poll)(THIS) PURE;
|
---|
1533 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
1534 | };
|
---|
1535 | #undef INTERFACE
|
---|
1536 |
|
---|
1537 | /*****************************************************************************
|
---|
1538 | * IDirectInputDevice2W interface
|
---|
1539 | */
|
---|
1540 | #define INTERFACE IDirectInputDevice2W
|
---|
1541 | DECLARE_INTERFACE_(IDirectInputDevice2W,IDirectInputDeviceW)
|
---|
1542 | {
|
---|
1543 | /*** IUnknown methods ***/
|
---|
1544 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1545 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1546 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1547 | /*** IDirectInputDeviceW methods ***/
|
---|
1548 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
1549 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
1550 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
1551 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
1552 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
1553 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
1554 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
1555 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
1556 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
1557 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
1558 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
1559 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
1560 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE;
|
---|
1561 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
1562 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
1563 | /*** IDirectInputDevice2W methods ***/
|
---|
1564 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
1565 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
1566 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW pdei, REFGUID rguid) PURE;
|
---|
1567 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
1568 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
1569 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
1570 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
1571 | STDMETHOD(Poll)(THIS) PURE;
|
---|
1572 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
1573 | };
|
---|
1574 | #undef INTERFACE
|
---|
1575 |
|
---|
1576 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1577 | /*** IUnknown methods ***/
|
---|
1578 | #define IDirectInputDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1579 | #define IDirectInputDevice2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1580 | #define IDirectInputDevice2_Release(p) (p)->lpVtbl->Release(p)
|
---|
1581 | /*** IDirectInputDevice methods ***/
|
---|
1582 | #define IDirectInputDevice2_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
|
---|
1583 | #define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
|
---|
1584 | #define IDirectInputDevice2_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
|
---|
1585 | #define IDirectInputDevice2_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
|
---|
1586 | #define IDirectInputDevice2_Acquire(p) (p)->lpVtbl->Acquire(p)
|
---|
1587 | #define IDirectInputDevice2_Unacquire(p) (p)->lpVtbl->Unacquire(p)
|
---|
1588 | #define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
|
---|
1589 | #define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
|
---|
1590 | #define IDirectInputDevice2_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
|
---|
1591 | #define IDirectInputDevice2_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
|
---|
1592 | #define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
1593 | #define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
|
---|
1594 | #define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
|
---|
1595 | #define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
1596 | #define IDirectInputDevice2_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
1597 | /*** IDirectInputDevice2 methods ***/
|
---|
1598 | #define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d)
|
---|
1599 | #define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c)
|
---|
1600 | #define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b)
|
---|
1601 | #define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a)
|
---|
1602 | #define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a)
|
---|
1603 | #define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c)
|
---|
1604 | #define IDirectInputDevice2_Escape(p,a) (p)->lpVtbl->Escape(p,a)
|
---|
1605 | #define IDirectInputDevice2_Poll(p) (p)->lpVtbl->Poll(p)
|
---|
1606 | #define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d)
|
---|
1607 | #else
|
---|
1608 | /*** IUnknown methods ***/
|
---|
1609 | #define IDirectInputDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1610 | #define IDirectInputDevice2_AddRef(p) (p)->AddRef()
|
---|
1611 | #define IDirectInputDevice2_Release(p) (p)->Release()
|
---|
1612 | /*** IDirectInputDevice methods ***/
|
---|
1613 | #define IDirectInputDevice2_GetCapabilities(p,a) (p)->GetCapabilities(a)
|
---|
1614 | #define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
|
---|
1615 | #define IDirectInputDevice2_GetProperty(p,a,b) (p)->GetProperty(a,b)
|
---|
1616 | #define IDirectInputDevice2_SetProperty(p,a,b) (p)->SetProperty(a,b)
|
---|
1617 | #define IDirectInputDevice2_Acquire(p) (p)->Acquire()
|
---|
1618 | #define IDirectInputDevice2_Unacquire(p) (p)->Unacquire()
|
---|
1619 | #define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
|
---|
1620 | #define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
|
---|
1621 | #define IDirectInputDevice2_SetDataFormat(p,a) (p)->SetDataFormat(a)
|
---|
1622 | #define IDirectInputDevice2_SetEventNotification(p,a) (p)->SetEventNotification(a)
|
---|
1623 | #define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
1624 | #define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
|
---|
1625 | #define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
|
---|
1626 | #define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
1627 | #define IDirectInputDevice2_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
1628 | /*** IDirectInputDevice2 methods ***/
|
---|
1629 | #define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d)
|
---|
1630 | #define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c)
|
---|
1631 | #define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b)
|
---|
1632 | #define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a)
|
---|
1633 | #define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a)
|
---|
1634 | #define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c)
|
---|
1635 | #define IDirectInputDevice2_Escape(p,a) (p)->Escape(a)
|
---|
1636 | #define IDirectInputDevice2_Poll(p) (p)->Poll()
|
---|
1637 | #define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d)
|
---|
1638 | #endif
|
---|
1639 |
|
---|
1640 | /*****************************************************************************
|
---|
1641 | * IDirectInputDevice7A interface
|
---|
1642 | */
|
---|
1643 | #define INTERFACE IDirectInputDevice7A
|
---|
1644 | DECLARE_INTERFACE_(IDirectInputDevice7A,IDirectInputDevice2A)
|
---|
1645 | {
|
---|
1646 | /*** IUnknown methods ***/
|
---|
1647 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1648 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1649 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1650 | /*** IDirectInputDeviceA methods ***/
|
---|
1651 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
1652 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
1653 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
1654 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
1655 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
1656 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
1657 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
1658 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
1659 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
1660 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
1661 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
1662 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
1663 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE;
|
---|
1664 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
1665 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
1666 | /*** IDirectInputDevice2A methods ***/
|
---|
1667 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
1668 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
1669 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA pdei, REFGUID rguid) PURE;
|
---|
1670 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
1671 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
1672 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
1673 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
1674 | STDMETHOD(Poll)(THIS) PURE;
|
---|
1675 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
1676 | /*** IDirectInputDevice7A methods ***/
|
---|
1677 | STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE;
|
---|
1678 | STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE;
|
---|
1679 | };
|
---|
1680 | #undef INTERFACE
|
---|
1681 |
|
---|
1682 | /*****************************************************************************
|
---|
1683 | * IDirectInputDevice7W interface
|
---|
1684 | */
|
---|
1685 | #define INTERFACE IDirectInputDevice7W
|
---|
1686 | DECLARE_INTERFACE_(IDirectInputDevice7W,IDirectInputDevice2W)
|
---|
1687 | {
|
---|
1688 | /*** IUnknown methods ***/
|
---|
1689 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1690 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1691 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1692 | /*** IDirectInputDeviceW methods ***/
|
---|
1693 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
1694 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
1695 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
1696 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
1697 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
1698 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
1699 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
1700 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
1701 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
1702 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
1703 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
1704 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
1705 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE;
|
---|
1706 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
1707 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
1708 | /*** IDirectInputDevice2W methods ***/
|
---|
1709 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
1710 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
1711 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW pdei, REFGUID rguid) PURE;
|
---|
1712 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
1713 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
1714 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
1715 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
1716 | STDMETHOD(Poll)(THIS) PURE;
|
---|
1717 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
1718 | /*** IDirectInputDevice7W methods ***/
|
---|
1719 | STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE;
|
---|
1720 | STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE;
|
---|
1721 | };
|
---|
1722 | #undef INTERFACE
|
---|
1723 |
|
---|
1724 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1725 | /*** IUnknown methods ***/
|
---|
1726 | #define IDirectInputDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1727 | #define IDirectInputDevice7_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1728 | #define IDirectInputDevice7_Release(p) (p)->lpVtbl->Release(p)
|
---|
1729 | /*** IDirectInputDevice methods ***/
|
---|
1730 | #define IDirectInputDevice7_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
|
---|
1731 | #define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
|
---|
1732 | #define IDirectInputDevice7_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
|
---|
1733 | #define IDirectInputDevice7_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
|
---|
1734 | #define IDirectInputDevice7_Acquire(p) (p)->lpVtbl->Acquire(p)
|
---|
1735 | #define IDirectInputDevice7_Unacquire(p) (p)->lpVtbl->Unacquire(p)
|
---|
1736 | #define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
|
---|
1737 | #define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
|
---|
1738 | #define IDirectInputDevice7_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
|
---|
1739 | #define IDirectInputDevice7_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
|
---|
1740 | #define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
1741 | #define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
|
---|
1742 | #define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
|
---|
1743 | #define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
1744 | #define IDirectInputDevice7_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
1745 | /*** IDirectInputDevice2 methods ***/
|
---|
1746 | #define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d)
|
---|
1747 | #define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c)
|
---|
1748 | #define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b)
|
---|
1749 | #define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a)
|
---|
1750 | #define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a)
|
---|
1751 | #define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c)
|
---|
1752 | #define IDirectInputDevice7_Escape(p,a) (p)->lpVtbl->Escape(p,a)
|
---|
1753 | #define IDirectInputDevice7_Poll(p) (p)->lpVtbl->Poll(p)
|
---|
1754 | #define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d)
|
---|
1755 | /*** IDirectInputDevice7 methods ***/
|
---|
1756 | #define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d)
|
---|
1757 | #define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d)
|
---|
1758 | #else
|
---|
1759 | /*** IUnknown methods ***/
|
---|
1760 | #define IDirectInputDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1761 | #define IDirectInputDevice7_AddRef(p) (p)->AddRef()
|
---|
1762 | #define IDirectInputDevice7_Release(p) (p)->Release()
|
---|
1763 | /*** IDirectInputDevice methods ***/
|
---|
1764 | #define IDirectInputDevice7_GetCapabilities(p,a) (p)->GetCapabilities(a)
|
---|
1765 | #define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
|
---|
1766 | #define IDirectInputDevice7_GetProperty(p,a,b) (p)->GetProperty(a,b)
|
---|
1767 | #define IDirectInputDevice7_SetProperty(p,a,b) (p)->SetProperty(a,b)
|
---|
1768 | #define IDirectInputDevice7_Acquire(p) (p)->Acquire()
|
---|
1769 | #define IDirectInputDevice7_Unacquire(p) (p)->Unacquire()
|
---|
1770 | #define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
|
---|
1771 | #define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
|
---|
1772 | #define IDirectInputDevice7_SetDataFormat(p,a) (p)->SetDataFormat(a)
|
---|
1773 | #define IDirectInputDevice7_SetEventNotification(p,a) (p)->SetEventNotification(a)
|
---|
1774 | #define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
1775 | #define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
|
---|
1776 | #define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
|
---|
1777 | #define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
1778 | #define IDirectInputDevice7_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
1779 | /*** IDirectInputDevice2 methods ***/
|
---|
1780 | #define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d)
|
---|
1781 | #define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c)
|
---|
1782 | #define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b)
|
---|
1783 | #define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a)
|
---|
1784 | #define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a)
|
---|
1785 | #define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c)
|
---|
1786 | #define IDirectInputDevice7_Escape(p,a) (p)->Escape(a)
|
---|
1787 | #define IDirectInputDevice7_Poll(p) (p)->Poll()
|
---|
1788 | #define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d)
|
---|
1789 | /*** IDirectInputDevice7 methods ***/
|
---|
1790 | #define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d)
|
---|
1791 | #define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d)
|
---|
1792 | #endif
|
---|
1793 |
|
---|
1794 |
|
---|
1795 | /*****************************************************************************
|
---|
1796 | * IDirectInputDevice8A interface
|
---|
1797 | */
|
---|
1798 | #define INTERFACE IDirectInputDevice8A
|
---|
1799 | DECLARE_INTERFACE_(IDirectInputDevice8A,IDirectInputDevice7A)
|
---|
1800 | {
|
---|
1801 | /*** IUnknown methods ***/
|
---|
1802 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1803 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1804 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1805 | /*** IDirectInputDeviceA methods ***/
|
---|
1806 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
1807 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
1808 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
1809 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
1810 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
1811 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
1812 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
1813 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
1814 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
1815 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
1816 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
1817 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
1818 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE;
|
---|
1819 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
1820 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
1821 | /*** IDirectInputDevice2A methods ***/
|
---|
1822 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
1823 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
1824 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA pdei, REFGUID rguid) PURE;
|
---|
1825 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
1826 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
1827 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
1828 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
1829 | STDMETHOD(Poll)(THIS) PURE;
|
---|
1830 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
1831 | /*** IDirectInputDevice7A methods ***/
|
---|
1832 | STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE;
|
---|
1833 | STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE;
|
---|
1834 | /*** IDirectInputDevice8A methods ***/
|
---|
1835 | STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATA lpdiaf, LPCSTR lpszUserName, DWORD dwFlags) PURE;
|
---|
1836 | STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATA lpdiaf, LPCSTR lpszUserName, DWORD dwFlags) PURE;
|
---|
1837 | STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERA lpdiDevImageInfoHeader) PURE;
|
---|
1838 | };
|
---|
1839 | #undef INTERFACE
|
---|
1840 |
|
---|
1841 | /*****************************************************************************
|
---|
1842 | * IDirectInputDevice8W interface
|
---|
1843 | */
|
---|
1844 | #define INTERFACE IDirectInputDevice8W
|
---|
1845 | DECLARE_INTERFACE_(IDirectInputDevice8W,IDirectInputDevice7W)
|
---|
1846 | {
|
---|
1847 | /*** IUnknown methods ***/
|
---|
1848 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
1849 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
1850 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
1851 | /*** IDirectInputDeviceW methods ***/
|
---|
1852 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
1853 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
1854 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
1855 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
1856 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
1857 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
1858 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
1859 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
1860 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
1861 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
1862 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
1863 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
1864 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE;
|
---|
1865 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
1866 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
1867 | /*** IDirectInputDevice2W methods ***/
|
---|
1868 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
1869 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
1870 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW pdei, REFGUID rguid) PURE;
|
---|
1871 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
1872 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
1873 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
1874 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
1875 | STDMETHOD(Poll)(THIS) PURE;
|
---|
1876 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
1877 | /*** IDirectInputDevice7W methods ***/
|
---|
1878 | STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE;
|
---|
1879 | STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE;
|
---|
1880 | /*** IDirectInputDevice8W methods ***/
|
---|
1881 | STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags) PURE;
|
---|
1882 | STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags) PURE;
|
---|
1883 | STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERW lpdiDevImageInfoHeader) PURE;
|
---|
1884 | };
|
---|
1885 | #undef INTERFACE
|
---|
1886 |
|
---|
1887 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
1888 | /*** IUnknown methods ***/
|
---|
1889 | #define IDirectInputDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
1890 | #define IDirectInputDevice8_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
1891 | #define IDirectInputDevice8_Release(p) (p)->lpVtbl->Release(p)
|
---|
1892 | /*** IDirectInputDevice methods ***/
|
---|
1893 | #define IDirectInputDevice8_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
|
---|
1894 | #define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
|
---|
1895 | #define IDirectInputDevice8_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
|
---|
1896 | #define IDirectInputDevice8_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
|
---|
1897 | #define IDirectInputDevice8_Acquire(p) (p)->lpVtbl->Acquire(p)
|
---|
1898 | #define IDirectInputDevice8_Unacquire(p) (p)->lpVtbl->Unacquire(p)
|
---|
1899 | #define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
|
---|
1900 | #define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
|
---|
1901 | #define IDirectInputDevice8_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
|
---|
1902 | #define IDirectInputDevice8_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
|
---|
1903 | #define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
1904 | #define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
|
---|
1905 | #define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
|
---|
1906 | #define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
1907 | #define IDirectInputDevice8_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
1908 | /*** IDirectInputDevice2 methods ***/
|
---|
1909 | #define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d)
|
---|
1910 | #define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c)
|
---|
1911 | #define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b)
|
---|
1912 | #define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a)
|
---|
1913 | #define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a)
|
---|
1914 | #define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c)
|
---|
1915 | #define IDirectInputDevice8_Escape(p,a) (p)->lpVtbl->Escape(p,a)
|
---|
1916 | #define IDirectInputDevice8_Poll(p) (p)->lpVtbl->Poll(p)
|
---|
1917 | #define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d)
|
---|
1918 | /*** IDirectInputDevice7 methods ***/
|
---|
1919 | #define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d)
|
---|
1920 | #define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d)
|
---|
1921 | /*** IDirectInputDevice8 methods ***/
|
---|
1922 | #define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->lpVtbl->BuildActionMap(p,a,b,c)
|
---|
1923 | #define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->lpVtbl->SetActionMap(p,a,b,c)
|
---|
1924 | #define IDirectInputDevice8_GetImageInfo(p,a) (p)->lpVtbl->GetImageInfo(p,a)
|
---|
1925 | #else
|
---|
1926 | /*** IUnknown methods ***/
|
---|
1927 | #define IDirectInputDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
1928 | #define IDirectInputDevice8_AddRef(p) (p)->AddRef()
|
---|
1929 | #define IDirectInputDevice8_Release(p) (p)->Release()
|
---|
1930 | /*** IDirectInputDevice methods ***/
|
---|
1931 | #define IDirectInputDevice8_GetCapabilities(p,a) (p)->GetCapabilities(a)
|
---|
1932 | #define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
|
---|
1933 | #define IDirectInputDevice8_GetProperty(p,a,b) (p)->GetProperty(a,b)
|
---|
1934 | #define IDirectInputDevice8_SetProperty(p,a,b) (p)->SetProperty(a,b)
|
---|
1935 | #define IDirectInputDevice8_Acquire(p) (p)->Acquire()
|
---|
1936 | #define IDirectInputDevice8_Unacquire(p) (p)->Unacquire()
|
---|
1937 | #define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
|
---|
1938 | #define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
|
---|
1939 | #define IDirectInputDevice8_SetDataFormat(p,a) (p)->SetDataFormat(a)
|
---|
1940 | #define IDirectInputDevice8_SetEventNotification(p,a) (p)->SetEventNotification(a)
|
---|
1941 | #define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
1942 | #define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
|
---|
1943 | #define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
|
---|
1944 | #define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
1945 | #define IDirectInputDevice8_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
1946 | /*** IDirectInputDevice2 methods ***/
|
---|
1947 | #define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d)
|
---|
1948 | #define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c)
|
---|
1949 | #define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b)
|
---|
1950 | #define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a)
|
---|
1951 | #define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a)
|
---|
1952 | #define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c)
|
---|
1953 | #define IDirectInputDevice8_Escape(p,a) (p)->Escape(a)
|
---|
1954 | #define IDirectInputDevice8_Poll(p) (p)->Poll()
|
---|
1955 | #define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d)
|
---|
1956 | /*** IDirectInputDevice7 methods ***/
|
---|
1957 | #define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d)
|
---|
1958 | #define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d)
|
---|
1959 | /*** IDirectInputDevice8 methods ***/
|
---|
1960 | #define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->BuildActionMap(a,b,c)
|
---|
1961 | #define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->SetActionMap(a,b,c)
|
---|
1962 | #define IDirectInputDevice8_GetImageInfo(p,a) (p)->GetImageInfo(a)
|
---|
1963 | #endif
|
---|
1964 |
|
---|
1965 | /* "Standard" Mouse report... */
|
---|
1966 | typedef struct DIMOUSESTATE {
|
---|
1967 | LONG lX;
|
---|
1968 | LONG lY;
|
---|
1969 | LONG lZ;
|
---|
1970 | BYTE rgbButtons[4];
|
---|
1971 | } DIMOUSESTATE;
|
---|
1972 |
|
---|
1973 | /* "Standard" Mouse report for DInput 7... */
|
---|
1974 | typedef struct DIMOUSESTATE2 {
|
---|
1975 | LONG lX;
|
---|
1976 | LONG lY;
|
---|
1977 | LONG lZ;
|
---|
1978 | BYTE rgbButtons[8];
|
---|
1979 | } DIMOUSESTATE2;
|
---|
1980 |
|
---|
1981 | #define DIMOFS_X FIELD_OFFSET(DIMOUSESTATE, lX)
|
---|
1982 | #define DIMOFS_Y FIELD_OFFSET(DIMOUSESTATE, lY)
|
---|
1983 | #define DIMOFS_Z FIELD_OFFSET(DIMOUSESTATE, lZ)
|
---|
1984 | #define DIMOFS_BUTTON0 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 0)
|
---|
1985 | #define DIMOFS_BUTTON1 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 1)
|
---|
1986 | #define DIMOFS_BUTTON2 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 2)
|
---|
1987 | #define DIMOFS_BUTTON3 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 3)
|
---|
1988 | #define DIMOFS_BUTTON4 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 4)
|
---|
1989 | #define DIMOFS_BUTTON5 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 5)
|
---|
1990 | #define DIMOFS_BUTTON6 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 6)
|
---|
1991 | #define DIMOFS_BUTTON7 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 7)
|
---|
1992 |
|
---|
1993 | #ifdef __cplusplus
|
---|
1994 | extern "C" {
|
---|
1995 | #endif
|
---|
1996 | extern const DIDATAFORMAT c_dfDIMouse;
|
---|
1997 | extern const DIDATAFORMAT c_dfDIMouse2; /* DX 7 */
|
---|
1998 | extern const DIDATAFORMAT c_dfDIKeyboard;
|
---|
1999 | extern const DIDATAFORMAT c_dfDIJoystick;
|
---|
2000 | extern const DIDATAFORMAT c_dfDIJoystick2;
|
---|
2001 | #ifdef __cplusplus
|
---|
2002 | };
|
---|
2003 | #endif
|
---|
2004 |
|
---|
2005 | /*****************************************************************************
|
---|
2006 | * IDirectInputA interface
|
---|
2007 | */
|
---|
2008 | #define INTERFACE IDirectInputA
|
---|
2009 | DECLARE_INTERFACE_(IDirectInputA,IUnknown)
|
---|
2010 | {
|
---|
2011 | /*** IUnknown methods ***/
|
---|
2012 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2013 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2014 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2015 | /*** IDirectInputA methods ***/
|
---|
2016 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEA *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
2017 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
2018 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
2019 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
2020 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
2021 | };
|
---|
2022 | #undef INTERFACE
|
---|
2023 |
|
---|
2024 | /*****************************************************************************
|
---|
2025 | * IDirectInputW interface
|
---|
2026 | */
|
---|
2027 | #define INTERFACE IDirectInputW
|
---|
2028 | DECLARE_INTERFACE_(IDirectInputW,IUnknown)
|
---|
2029 | {
|
---|
2030 | /*** IUnknown methods ***/
|
---|
2031 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2032 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2033 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2034 | /*** IDirectInputW methods ***/
|
---|
2035 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEW *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
2036 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
2037 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
2038 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
2039 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
2040 | };
|
---|
2041 | #undef INTERFACE
|
---|
2042 |
|
---|
2043 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
2044 | /*** IUnknown methods ***/
|
---|
2045 | #define IDirectInput_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
2046 | #define IDirectInput_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
2047 | #define IDirectInput_Release(p) (p)->lpVtbl->Release(p)
|
---|
2048 | /*** IDirectInput methods ***/
|
---|
2049 | #define IDirectInput_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
|
---|
2050 | #define IDirectInput_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
|
---|
2051 | #define IDirectInput_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
|
---|
2052 | #define IDirectInput_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
2053 | #define IDirectInput_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
2054 | #else
|
---|
2055 | /*** IUnknown methods ***/
|
---|
2056 | #define IDirectInput_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
2057 | #define IDirectInput_AddRef(p) (p)->AddRef()
|
---|
2058 | #define IDirectInput_Release(p) (p)->Release()
|
---|
2059 | /*** IDirectInput methods ***/
|
---|
2060 | #define IDirectInput_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
|
---|
2061 | #define IDirectInput_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
|
---|
2062 | #define IDirectInput_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
|
---|
2063 | #define IDirectInput_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
2064 | #define IDirectInput_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
2065 | #endif
|
---|
2066 |
|
---|
2067 | /*****************************************************************************
|
---|
2068 | * IDirectInput2A interface
|
---|
2069 | */
|
---|
2070 | #define INTERFACE IDirectInput2A
|
---|
2071 | DECLARE_INTERFACE_(IDirectInput2A,IDirectInputA)
|
---|
2072 | {
|
---|
2073 | /*** IUnknown methods ***/
|
---|
2074 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2075 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2076 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2077 | /*** IDirectInputA methods ***/
|
---|
2078 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEA *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
2079 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
2080 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
2081 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
2082 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
2083 | /*** IDirectInput2A methods ***/
|
---|
2084 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCSTR pszName, LPGUID pguidInstance) PURE;
|
---|
2085 | };
|
---|
2086 | #undef INTERFACE
|
---|
2087 |
|
---|
2088 | /*****************************************************************************
|
---|
2089 | * IDirectInput2W interface
|
---|
2090 | */
|
---|
2091 | #define INTERFACE IDirectInput2W
|
---|
2092 | DECLARE_INTERFACE_(IDirectInput2W,IDirectInputW)
|
---|
2093 | {
|
---|
2094 | /*** IUnknown methods ***/
|
---|
2095 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2096 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2097 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2098 | /*** IDirectInputW methods ***/
|
---|
2099 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEW *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
2100 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
2101 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
2102 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
2103 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
2104 | /*** IDirectInput2W methods ***/
|
---|
2105 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCWSTR pszName, LPGUID pguidInstance) PURE;
|
---|
2106 | };
|
---|
2107 | #undef INTERFACE
|
---|
2108 |
|
---|
2109 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
2110 | /*** IUnknown methods ***/
|
---|
2111 | #define IDirectInput2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
2112 | #define IDirectInput2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
2113 | #define IDirectInput2_Release(p) (p)->lpVtbl->Release(p)
|
---|
2114 | /*** IDirectInput methods ***/
|
---|
2115 | #define IDirectInput2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
|
---|
2116 | #define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
|
---|
2117 | #define IDirectInput2_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
|
---|
2118 | #define IDirectInput2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
2119 | #define IDirectInput2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
2120 | /*** IDirectInput2 methods ***/
|
---|
2121 | #define IDirectInput2_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c)
|
---|
2122 | #else
|
---|
2123 | /*** IUnknown methods ***/
|
---|
2124 | #define IDirectInput2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
2125 | #define IDirectInput2_AddRef(p) (p)->AddRef()
|
---|
2126 | #define IDirectInput2_Release(p) (p)->Release()
|
---|
2127 | /*** IDirectInput methods ***/
|
---|
2128 | #define IDirectInput2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
|
---|
2129 | #define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
|
---|
2130 | #define IDirectInput2_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
|
---|
2131 | #define IDirectInput2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
2132 | #define IDirectInput2_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
2133 | /*** IDirectInput2 methods ***/
|
---|
2134 | #define IDirectInput2_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c)
|
---|
2135 | #endif
|
---|
2136 |
|
---|
2137 | /*****************************************************************************
|
---|
2138 | * IDirectInput7A interface
|
---|
2139 | */
|
---|
2140 | #define INTERFACE IDirectInput7A
|
---|
2141 | DECLARE_INTERFACE_(IDirectInput7A,IDirectInput2A)
|
---|
2142 | {
|
---|
2143 | /*** IUnknown methods ***/
|
---|
2144 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2145 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2146 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2147 | /*** IDirectInputA methods ***/
|
---|
2148 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEA *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
2149 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
2150 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
2151 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
2152 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
2153 | /*** IDirectInput2A methods ***/
|
---|
2154 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCSTR pszName, LPGUID pguidInstance) PURE;
|
---|
2155 | /*** IDirectInput7A methods ***/
|
---|
2156 | STDMETHOD(CreateDeviceEx)(THIS_ REFGUID rguid, REFIID riid, LPVOID *pvOut, LPUNKNOWN lpUnknownOuter) PURE;
|
---|
2157 | };
|
---|
2158 | #undef INTERFACE
|
---|
2159 |
|
---|
2160 | /*****************************************************************************
|
---|
2161 | * IDirectInput7W interface
|
---|
2162 | */
|
---|
2163 | #define INTERFACE IDirectInput7W
|
---|
2164 | DECLARE_INTERFACE_(IDirectInput7W,IDirectInput2W)
|
---|
2165 | {
|
---|
2166 | /*** IUnknown methods ***/
|
---|
2167 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2168 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2169 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2170 | /*** IDirectInputW methods ***/
|
---|
2171 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEW *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
2172 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
2173 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
2174 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
2175 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
2176 | /*** IDirectInput2W methods ***/
|
---|
2177 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCWSTR pszName, LPGUID pguidInstance) PURE;
|
---|
2178 | /*** IDirectInput7W methods ***/
|
---|
2179 | STDMETHOD(CreateDeviceEx)(THIS_ REFGUID rguid, REFIID riid, LPVOID *pvOut, LPUNKNOWN lpUnknownOuter) PURE;
|
---|
2180 | };
|
---|
2181 | #undef INTERFACE
|
---|
2182 |
|
---|
2183 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
2184 | /*** IUnknown methods ***/
|
---|
2185 | #define IDirectInput7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
2186 | #define IDirectInput7_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
2187 | #define IDirectInput7_Release(p) (p)->lpVtbl->Release(p)
|
---|
2188 | /*** IDirectInput methods ***/
|
---|
2189 | #define IDirectInput7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
|
---|
2190 | #define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
|
---|
2191 | #define IDirectInput7_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
|
---|
2192 | #define IDirectInput7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
2193 | #define IDirectInput7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
2194 | /*** IDirectInput2 methods ***/
|
---|
2195 | #define IDirectInput7_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c)
|
---|
2196 | /*** IDirectInput7 methods ***/
|
---|
2197 | #define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->lpVtbl->CreateDeviceEx(p,a,b,c,d)
|
---|
2198 | #else
|
---|
2199 | /*** IUnknown methods ***/
|
---|
2200 | #define IDirectInput7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
2201 | #define IDirectInput7_AddRef(p) (p)->AddRef()
|
---|
2202 | #define IDirectInput7_Release(p) (p)->Release()
|
---|
2203 | /*** IDirectInput methods ***/
|
---|
2204 | #define IDirectInput7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
|
---|
2205 | #define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
|
---|
2206 | #define IDirectInput7_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
|
---|
2207 | #define IDirectInput7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
2208 | #define IDirectInput7_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
2209 | /*** IDirectInput2 methods ***/
|
---|
2210 | #define IDirectInput7_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c)
|
---|
2211 | /*** IDirectInput7 methods ***/
|
---|
2212 | #define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->CreateDeviceEx(a,b,c,d)
|
---|
2213 | #endif
|
---|
2214 |
|
---|
2215 |
|
---|
2216 | /*****************************************************************************
|
---|
2217 | * IDirectInput8A interface
|
---|
2218 | */
|
---|
2219 | #define INTERFACE IDirectInput8A
|
---|
2220 | DECLARE_INTERFACE_(IDirectInput8A,IUnknown)
|
---|
2221 | {
|
---|
2222 | /*** IUnknown methods ***/
|
---|
2223 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2224 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2225 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2226 | /*** IDirectInput8A methods ***/
|
---|
2227 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICE8A *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
2228 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
2229 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
2230 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
2231 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
2232 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCSTR pszName, LPGUID pguidInstance) PURE;
|
---|
2233 | STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCSTR ptszUserName, LPDIACTIONFORMATA lpdiActionFormat, LPDIENUMDEVICESBYSEMANTICSCBA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
2234 | STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK lpdiCallback, LPDICONFIGUREDEVICESPARAMSA lpdiCDParams, DWORD dwFlags, LPVOID pvRefData) PURE;
|
---|
2235 | };
|
---|
2236 | #undef INTERFACE
|
---|
2237 |
|
---|
2238 | /*****************************************************************************
|
---|
2239 | * IDirectInput8W interface
|
---|
2240 | */
|
---|
2241 | #define INTERFACE IDirectInput8W
|
---|
2242 | DECLARE_INTERFACE_(IDirectInput8W,IUnknown)
|
---|
2243 | {
|
---|
2244 | /*** IUnknown methods ***/
|
---|
2245 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
2246 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
2247 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
2248 | /*** IDirectInput8W methods ***/
|
---|
2249 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICE8W *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
2250 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
2251 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
2252 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
2253 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
2254 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCWSTR pszName, LPGUID pguidInstance) PURE;
|
---|
2255 | STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCWSTR ptszUserName, LPDIACTIONFORMATW lpdiActionFormat, LPDIENUMDEVICESBYSEMANTICSCBW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
2256 | STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK lpdiCallback, LPDICONFIGUREDEVICESPARAMSW lpdiCDParams, DWORD dwFlags, LPVOID pvRefData) PURE;
|
---|
2257 | };
|
---|
2258 | #undef INTERFACE
|
---|
2259 |
|
---|
2260 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
2261 | /*** IUnknown methods ***/
|
---|
2262 | #define IDirectInput8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
2263 | #define IDirectInput8_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
2264 | #define IDirectInput8_Release(p) (p)->lpVtbl->Release(p)
|
---|
2265 | /*** IDirectInput8 methods ***/
|
---|
2266 | #define IDirectInput8_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
|
---|
2267 | #define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
|
---|
2268 | #define IDirectInput8_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
|
---|
2269 | #define IDirectInput8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
2270 | #define IDirectInput8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
2271 | #define IDirectInput8_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c)
|
---|
2272 | #define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->lpVtbl->EnumDevicesBySemantics(p,a,b,c,d,e)
|
---|
2273 | #define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->lpVtbl->ConfigureDevices(p,a,b,c,d)
|
---|
2274 | #else
|
---|
2275 | /*** IUnknown methods ***/
|
---|
2276 | #define IDirectInput8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
2277 | #define IDirectInput8_AddRef(p) (p)->AddRef()
|
---|
2278 | #define IDirectInput8_Release(p) (p)->Release()
|
---|
2279 | /*** IDirectInput8 methods ***/
|
---|
2280 | #define IDirectInput8_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
|
---|
2281 | #define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
|
---|
2282 | #define IDirectInput8_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
|
---|
2283 | #define IDirectInput8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
2284 | #define IDirectInput8_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
2285 | #define IDirectInput8_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c)
|
---|
2286 | #define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->EnumDevicesBySemantics(a,b,c,d,e)
|
---|
2287 | #define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->ConfigureDevices(a,b,c,d)
|
---|
2288 | #endif
|
---|
2289 |
|
---|
2290 |
|
---|
2291 | /* Export functions */
|
---|
2292 |
|
---|
2293 | #ifdef __cplusplus
|
---|
2294 | extern "C" {
|
---|
2295 | #endif
|
---|
2296 |
|
---|
2297 | HRESULT WINAPI DirectInput8Create(HINSTANCE,DWORD,REFIID,LPVOID *,LPUNKNOWN);
|
---|
2298 |
|
---|
2299 | HRESULT WINAPI DirectInputCreateA(HINSTANCE,DWORD,LPDIRECTINPUTA *,LPUNKNOWN);
|
---|
2300 | HRESULT WINAPI DirectInputCreateW(HINSTANCE,DWORD,LPDIRECTINPUTW *,LPUNKNOWN);
|
---|
2301 | #define DirectInputCreate WINELIB_NAME_AW(DirectInputCreate)
|
---|
2302 |
|
---|
2303 | HRESULT WINAPI DirectInputCreateEx(HINSTANCE,DWORD,REFIID,LPVOID *,LPUNKNOWN);
|
---|
2304 |
|
---|
2305 | #ifdef __cplusplus
|
---|
2306 | };
|
---|
2307 | #endif
|
---|
2308 |
|
---|
2309 | #endif /* __WINE_DINPUT_H */
|
---|