missing project/build files
[client-tools.git] / src / external / 3rd / library / directx9 / include / dinput.h
blobaa57a6240fb44f038059d63da84e67b563bc2a1f
1 /****************************************************************************
3 * Copyright (C) 1996-2000 Microsoft Corporation. All Rights Reserved.
5 * File: dinput.h
6 * Content: DirectInput include file
8 ****************************************************************************/
10 #ifndef __DINPUT_INCLUDED__
11 #define __DINPUT_INCLUDED__
13 #ifndef DIJ_RINGZERO
15 #ifdef _WIN32
16 #define COM_NO_WINDOWS_H
17 #include <objbase.h>
18 #endif
20 #endif /* DIJ_RINGZERO */
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
31 * To build applications for older versions of DirectInput
33 * #define DIRECTINPUT_VERSION [ 0x0300 | 0x0500 | 0x0700 ]
35 * before #include <dinput.h>. By default, #include <dinput.h>
36 * will produce a DirectX 8-compatible header file.
40 #define DIRECTINPUT_HEADER_VERSION 0x0800
41 #ifndef DIRECTINPUT_VERSION
42 #define DIRECTINPUT_VERSION DIRECTINPUT_HEADER_VERSION
43 #endif
45 #ifndef DIJ_RINGZERO
47 /****************************************************************************
49 * Class IDs
51 ****************************************************************************/
53 DEFINE_GUID(CLSID_DirectInput, 0x25E609E0,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
54 DEFINE_GUID(CLSID_DirectInputDevice, 0x25E609E1,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
56 DEFINE_GUID(CLSID_DirectInput8, 0x25E609E4,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
57 DEFINE_GUID(CLSID_DirectInputDevice8,0x25E609E5,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
59 /****************************************************************************
61 * Interfaces
63 ****************************************************************************/
65 DEFINE_GUID(IID_IDirectInputA, 0x89521360,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
66 DEFINE_GUID(IID_IDirectInputW, 0x89521361,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
67 DEFINE_GUID(IID_IDirectInput2A, 0x5944E662,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
68 DEFINE_GUID(IID_IDirectInput2W, 0x5944E663,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
69 DEFINE_GUID(IID_IDirectInput7A, 0x9A4CB684,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
70 DEFINE_GUID(IID_IDirectInput7W, 0x9A4CB685,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
71 DEFINE_GUID(IID_IDirectInput8A, 0xBF798030,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00);
72 DEFINE_GUID(IID_IDirectInput8W, 0xBF798031,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00);
73 DEFINE_GUID(IID_IDirectInputDeviceA, 0x5944E680,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
74 DEFINE_GUID(IID_IDirectInputDeviceW, 0x5944E681,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
75 DEFINE_GUID(IID_IDirectInputDevice2A,0x5944E682,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
76 DEFINE_GUID(IID_IDirectInputDevice2W,0x5944E683,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
77 DEFINE_GUID(IID_IDirectInputDevice7A,0x57D7C6BC,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
78 DEFINE_GUID(IID_IDirectInputDevice7W,0x57D7C6BD,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
79 DEFINE_GUID(IID_IDirectInputDevice8A,0x54D41080,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79);
80 DEFINE_GUID(IID_IDirectInputDevice8W,0x54D41081,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79);
81 DEFINE_GUID(IID_IDirectInputEffect, 0xE7E1F7C0,0x88D2,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
83 /****************************************************************************
85 * Predefined object types
87 ****************************************************************************/
89 DEFINE_GUID(GUID_XAxis, 0xA36D02E0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
90 DEFINE_GUID(GUID_YAxis, 0xA36D02E1,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
91 DEFINE_GUID(GUID_ZAxis, 0xA36D02E2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
92 DEFINE_GUID(GUID_RxAxis, 0xA36D02F4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
93 DEFINE_GUID(GUID_RyAxis, 0xA36D02F5,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
94 DEFINE_GUID(GUID_RzAxis, 0xA36D02E3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
95 DEFINE_GUID(GUID_Slider, 0xA36D02E4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
97 DEFINE_GUID(GUID_Button, 0xA36D02F0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
98 DEFINE_GUID(GUID_Key, 0x55728220,0xD33C,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
100 DEFINE_GUID(GUID_POV, 0xA36D02F2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
102 DEFINE_GUID(GUID_Unknown, 0xA36D02F3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
104 /****************************************************************************
106 * Predefined product GUIDs
108 ****************************************************************************/
110 DEFINE_GUID(GUID_SysMouse, 0x6F1D2B60,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
111 DEFINE_GUID(GUID_SysKeyboard,0x6F1D2B61,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
112 DEFINE_GUID(GUID_Joystick ,0x6F1D2B70,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
113 DEFINE_GUID(GUID_SysMouseEm, 0x6F1D2B80,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
114 DEFINE_GUID(GUID_SysMouseEm2,0x6F1D2B81,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
115 DEFINE_GUID(GUID_SysKeyboardEm, 0x6F1D2B82,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
116 DEFINE_GUID(GUID_SysKeyboardEm2,0x6F1D2B83,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
118 /****************************************************************************
120 * Predefined force feedback effects
122 ****************************************************************************/
124 DEFINE_GUID(GUID_ConstantForce, 0x13541C20,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
125 DEFINE_GUID(GUID_RampForce, 0x13541C21,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
126 DEFINE_GUID(GUID_Square, 0x13541C22,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
127 DEFINE_GUID(GUID_Sine, 0x13541C23,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
128 DEFINE_GUID(GUID_Triangle, 0x13541C24,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
129 DEFINE_GUID(GUID_SawtoothUp, 0x13541C25,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
130 DEFINE_GUID(GUID_SawtoothDown, 0x13541C26,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
131 DEFINE_GUID(GUID_Spring, 0x13541C27,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
132 DEFINE_GUID(GUID_Damper, 0x13541C28,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
133 DEFINE_GUID(GUID_Inertia, 0x13541C29,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
134 DEFINE_GUID(GUID_Friction, 0x13541C2A,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
135 DEFINE_GUID(GUID_CustomForce, 0x13541C2B,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
137 #endif /* DIJ_RINGZERO */
139 /****************************************************************************
141 * Interfaces and Structures...
143 ****************************************************************************/
145 #if(DIRECTINPUT_VERSION >= 0x0500)
147 /****************************************************************************
149 * IDirectInputEffect
151 ****************************************************************************/
153 #define DIEFT_ALL 0x00000000
155 #define DIEFT_CONSTANTFORCE 0x00000001
156 #define DIEFT_RAMPFORCE 0x00000002
157 #define DIEFT_PERIODIC 0x00000003
158 #define DIEFT_CONDITION 0x00000004
159 #define DIEFT_CUSTOMFORCE 0x00000005
160 #define DIEFT_HARDWARE 0x000000FF
161 #define DIEFT_FFATTACK 0x00000200
162 #define DIEFT_FFFADE 0x00000400
163 #define DIEFT_SATURATION 0x00000800
164 #define DIEFT_POSNEGCOEFFICIENTS 0x00001000
165 #define DIEFT_POSNEGSATURATION 0x00002000
166 #define DIEFT_DEADBAND 0x00004000
167 #define DIEFT_STARTDELAY 0x00008000
168 #define DIEFT_GETTYPE(n) LOBYTE(n)
170 #define DI_DEGREES 100
171 #define DI_FFNOMINALMAX 10000
172 #define DI_SECONDS 1000000
174 typedef struct DICONSTANTFORCE {
175 LONG lMagnitude;
176 } DICONSTANTFORCE, *LPDICONSTANTFORCE;
177 typedef const DICONSTANTFORCE *LPCDICONSTANTFORCE;
179 typedef struct DIRAMPFORCE {
180 LONG lStart;
181 LONG lEnd;
182 } DIRAMPFORCE, *LPDIRAMPFORCE;
183 typedef const DIRAMPFORCE *LPCDIRAMPFORCE;
185 typedef struct DIPERIODIC {
186 DWORD dwMagnitude;
187 LONG lOffset;
188 DWORD dwPhase;
189 DWORD dwPeriod;
190 } DIPERIODIC, *LPDIPERIODIC;
191 typedef const DIPERIODIC *LPCDIPERIODIC;
193 typedef struct DICONDITION {
194 LONG lOffset;
195 LONG lPositiveCoefficient;
196 LONG lNegativeCoefficient;
197 DWORD dwPositiveSaturation;
198 DWORD dwNegativeSaturation;
199 LONG lDeadBand;
200 } DICONDITION, *LPDICONDITION;
201 typedef const DICONDITION *LPCDICONDITION;
203 typedef struct DICUSTOMFORCE {
204 DWORD cChannels;
205 DWORD dwSamplePeriod;
206 DWORD cSamples;
207 LPLONG rglForceData;
208 } DICUSTOMFORCE, *LPDICUSTOMFORCE;
209 typedef const DICUSTOMFORCE *LPCDICUSTOMFORCE;
212 typedef struct DIENVELOPE {
213 DWORD dwSize; /* sizeof(DIENVELOPE) */
214 DWORD dwAttackLevel;
215 DWORD dwAttackTime; /* Microseconds */
216 DWORD dwFadeLevel;
217 DWORD dwFadeTime; /* Microseconds */
218 } DIENVELOPE, *LPDIENVELOPE;
219 typedef const DIENVELOPE *LPCDIENVELOPE;
222 /* This structure is defined for DirectX 5.0 compatibility */
223 typedef struct DIEFFECT_DX5 {
224 DWORD dwSize; /* sizeof(DIEFFECT_DX5) */
225 DWORD dwFlags; /* DIEFF_* */
226 DWORD dwDuration; /* Microseconds */
227 DWORD dwSamplePeriod; /* Microseconds */
228 DWORD dwGain;
229 DWORD dwTriggerButton; /* or DIEB_NOTRIGGER */
230 DWORD dwTriggerRepeatInterval; /* Microseconds */
231 DWORD cAxes; /* Number of axes */
232 LPDWORD rgdwAxes; /* Array of axes */
233 LPLONG rglDirection; /* Array of directions */
234 LPDIENVELOPE lpEnvelope; /* Optional */
235 DWORD cbTypeSpecificParams; /* Size of params */
236 LPVOID lpvTypeSpecificParams; /* Pointer to params */
237 } DIEFFECT_DX5, *LPDIEFFECT_DX5;
238 typedef const DIEFFECT_DX5 *LPCDIEFFECT_DX5;
240 typedef struct DIEFFECT {
241 DWORD dwSize; /* sizeof(DIEFFECT) */
242 DWORD dwFlags; /* DIEFF_* */
243 DWORD dwDuration; /* Microseconds */
244 DWORD dwSamplePeriod; /* Microseconds */
245 DWORD dwGain;
246 DWORD dwTriggerButton; /* or DIEB_NOTRIGGER */
247 DWORD dwTriggerRepeatInterval; /* Microseconds */
248 DWORD cAxes; /* Number of axes */
249 LPDWORD rgdwAxes; /* Array of axes */
250 LPLONG rglDirection; /* Array of directions */
251 LPDIENVELOPE lpEnvelope; /* Optional */
252 DWORD cbTypeSpecificParams; /* Size of params */
253 LPVOID lpvTypeSpecificParams; /* Pointer to params */
254 #if(DIRECTINPUT_VERSION >= 0x0600)
255 DWORD dwStartDelay; /* Microseconds */
256 #endif /* DIRECTINPUT_VERSION >= 0x0600 */
257 } DIEFFECT, *LPDIEFFECT;
258 typedef DIEFFECT DIEFFECT_DX6;
259 typedef LPDIEFFECT LPDIEFFECT_DX6;
260 typedef const DIEFFECT *LPCDIEFFECT;
263 #if(DIRECTINPUT_VERSION >= 0x0700)
264 #ifndef DIJ_RINGZERO
265 typedef struct DIFILEEFFECT{
266 DWORD dwSize;
267 GUID GuidEffect;
268 LPCDIEFFECT lpDiEffect;
269 CHAR szFriendlyName[MAX_PATH];
270 }DIFILEEFFECT, *LPDIFILEEFFECT;
271 typedef const DIFILEEFFECT *LPCDIFILEEFFECT;
272 typedef BOOL (FAR PASCAL * LPDIENUMEFFECTSINFILECALLBACK)(LPCDIFILEEFFECT , LPVOID);
273 #endif /* DIJ_RINGZERO */
274 #endif /* DIRECTINPUT_VERSION >= 0x0700 */
276 #define DIEFF_OBJECTIDS 0x00000001
277 #define DIEFF_OBJECTOFFSETS 0x00000002
278 #define DIEFF_CARTESIAN 0x00000010
279 #define DIEFF_POLAR 0x00000020
280 #define DIEFF_SPHERICAL 0x00000040
282 #define DIEP_DURATION 0x00000001
283 #define DIEP_SAMPLEPERIOD 0x00000002
284 #define DIEP_GAIN 0x00000004
285 #define DIEP_TRIGGERBUTTON 0x00000008
286 #define DIEP_TRIGGERREPEATINTERVAL 0x00000010
287 #define DIEP_AXES 0x00000020
288 #define DIEP_DIRECTION 0x00000040
289 #define DIEP_ENVELOPE 0x00000080
290 #define DIEP_TYPESPECIFICPARAMS 0x00000100
291 #if(DIRECTINPUT_VERSION >= 0x0600)
292 #define DIEP_STARTDELAY 0x00000200
293 #define DIEP_ALLPARAMS_DX5 0x000001FF
294 #define DIEP_ALLPARAMS 0x000003FF
295 #else /* DIRECTINPUT_VERSION < 0x0600 */
296 #define DIEP_ALLPARAMS 0x000001FF
297 #endif /* DIRECTINPUT_VERSION < 0x0600 */
298 #define DIEP_START 0x20000000
299 #define DIEP_NORESTART 0x40000000
300 #define DIEP_NODOWNLOAD 0x80000000
301 #define DIEB_NOTRIGGER 0xFFFFFFFF
303 #define DIES_SOLO 0x00000001
304 #define DIES_NODOWNLOAD 0x80000000
306 #define DIEGES_PLAYING 0x00000001
307 #define DIEGES_EMULATED 0x00000002
309 typedef struct DIEFFESCAPE {
310 DWORD dwSize;
311 DWORD dwCommand;
312 LPVOID lpvInBuffer;
313 DWORD cbInBuffer;
314 LPVOID lpvOutBuffer;
315 DWORD cbOutBuffer;
316 } DIEFFESCAPE, *LPDIEFFESCAPE;
318 #ifndef DIJ_RINGZERO
320 #undef INTERFACE
321 #define INTERFACE IDirectInputEffect
323 DECLARE_INTERFACE_(IDirectInputEffect, IUnknown)
325 /*** IUnknown methods ***/
326 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
327 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
328 STDMETHOD_(ULONG,Release)(THIS) PURE;
330 /*** IDirectInputEffect methods ***/
331 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE;
332 STDMETHOD(GetEffectGuid)(THIS_ LPGUID) PURE;
333 STDMETHOD(GetParameters)(THIS_ LPDIEFFECT,DWORD) PURE;
334 STDMETHOD(SetParameters)(THIS_ LPCDIEFFECT,DWORD) PURE;
335 STDMETHOD(Start)(THIS_ DWORD,DWORD) PURE;
336 STDMETHOD(Stop)(THIS) PURE;
337 STDMETHOD(GetEffectStatus)(THIS_ LPDWORD) PURE;
338 STDMETHOD(Download)(THIS) PURE;
339 STDMETHOD(Unload)(THIS) PURE;
340 STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE;
343 typedef struct IDirectInputEffect *LPDIRECTINPUTEFFECT;
345 #if !defined(__cplusplus) || defined(CINTERFACE)
346 #define IDirectInputEffect_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
347 #define IDirectInputEffect_AddRef(p) (p)->lpVtbl->AddRef(p)
348 #define IDirectInputEffect_Release(p) (p)->lpVtbl->Release(p)
349 #define IDirectInputEffect_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
350 #define IDirectInputEffect_GetEffectGuid(p,a) (p)->lpVtbl->GetEffectGuid(p,a)
351 #define IDirectInputEffect_GetParameters(p,a,b) (p)->lpVtbl->GetParameters(p,a,b)
352 #define IDirectInputEffect_SetParameters(p,a,b) (p)->lpVtbl->SetParameters(p,a,b)
353 #define IDirectInputEffect_Start(p,a,b) (p)->lpVtbl->Start(p,a,b)
354 #define IDirectInputEffect_Stop(p) (p)->lpVtbl->Stop(p)
355 #define IDirectInputEffect_GetEffectStatus(p,a) (p)->lpVtbl->GetEffectStatus(p,a)
356 #define IDirectInputEffect_Download(p) (p)->lpVtbl->Download(p)
357 #define IDirectInputEffect_Unload(p) (p)->lpVtbl->Unload(p)
358 #define IDirectInputEffect_Escape(p,a) (p)->lpVtbl->Escape(p,a)
359 #else
360 #define IDirectInputEffect_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
361 #define IDirectInputEffect_AddRef(p) (p)->AddRef()
362 #define IDirectInputEffect_Release(p) (p)->Release()
363 #define IDirectInputEffect_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
364 #define IDirectInputEffect_GetEffectGuid(p,a) (p)->GetEffectGuid(a)
365 #define IDirectInputEffect_GetParameters(p,a,b) (p)->GetParameters(a,b)
366 #define IDirectInputEffect_SetParameters(p,a,b) (p)->SetParameters(a,b)
367 #define IDirectInputEffect_Start(p,a,b) (p)->Start(a,b)
368 #define IDirectInputEffect_Stop(p) (p)->Stop()
369 #define IDirectInputEffect_GetEffectStatus(p,a) (p)->GetEffectStatus(a)
370 #define IDirectInputEffect_Download(p) (p)->Download()
371 #define IDirectInputEffect_Unload(p) (p)->Unload()
372 #define IDirectInputEffect_Escape(p,a) (p)->Escape(a)
373 #endif
375 #endif /* DIJ_RINGZERO */
377 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
379 /****************************************************************************
381 * IDirectInputDevice
383 ****************************************************************************/
385 #if DIRECTINPUT_VERSION <= 0x700
386 #define DIDEVTYPE_DEVICE 1
387 #define DIDEVTYPE_MOUSE 2
388 #define DIDEVTYPE_KEYBOARD 3
389 #define DIDEVTYPE_JOYSTICK 4
391 #else
392 #define DI8DEVCLASS_ALL 0
393 #define DI8DEVCLASS_DEVICE 1
394 #define DI8DEVCLASS_POINTER 2
395 #define DI8DEVCLASS_KEYBOARD 3
396 #define DI8DEVCLASS_GAMECTRL 4
398 #define DI8DEVTYPE_DEVICE 0x11
399 #define DI8DEVTYPE_MOUSE 0x12
400 #define DI8DEVTYPE_KEYBOARD 0x13
401 #define DI8DEVTYPE_JOYSTICK 0x14
402 #define DI8DEVTYPE_GAMEPAD 0x15
403 #define DI8DEVTYPE_DRIVING 0x16
404 #define DI8DEVTYPE_FLIGHT 0x17
405 #define DI8DEVTYPE_1STPERSON 0x18
406 #define DI8DEVTYPE_DEVICECTRL 0x19
407 #define DI8DEVTYPE_SCREENPOINTER 0x1A
408 #define DI8DEVTYPE_REMOTE 0x1B
409 #define DI8DEVTYPE_SUPPLEMENTAL 0x1C
410 #endif /* DIRECTINPUT_VERSION <= 0x700 */
412 #define DIDEVTYPE_HID 0x00010000
414 #if DIRECTINPUT_VERSION <= 0x700
415 #define DIDEVTYPEMOUSE_UNKNOWN 1
416 #define DIDEVTYPEMOUSE_TRADITIONAL 2
417 #define DIDEVTYPEMOUSE_FINGERSTICK 3
418 #define DIDEVTYPEMOUSE_TOUCHPAD 4
419 #define DIDEVTYPEMOUSE_TRACKBALL 5
421 #define DIDEVTYPEKEYBOARD_UNKNOWN 0
422 #define DIDEVTYPEKEYBOARD_PCXT 1
423 #define DIDEVTYPEKEYBOARD_OLIVETTI 2
424 #define DIDEVTYPEKEYBOARD_PCAT 3
425 #define DIDEVTYPEKEYBOARD_PCENH 4
426 #define DIDEVTYPEKEYBOARD_NOKIA1050 5
427 #define DIDEVTYPEKEYBOARD_NOKIA9140 6
428 #define DIDEVTYPEKEYBOARD_NEC98 7
429 #define DIDEVTYPEKEYBOARD_NEC98LAPTOP 8
430 #define DIDEVTYPEKEYBOARD_NEC98106 9
431 #define DIDEVTYPEKEYBOARD_JAPAN106 10
432 #define DIDEVTYPEKEYBOARD_JAPANAX 11
433 #define DIDEVTYPEKEYBOARD_J3100 12
435 #define DIDEVTYPEJOYSTICK_UNKNOWN 1
436 #define DIDEVTYPEJOYSTICK_TRADITIONAL 2
437 #define DIDEVTYPEJOYSTICK_FLIGHTSTICK 3
438 #define DIDEVTYPEJOYSTICK_GAMEPAD 4
439 #define DIDEVTYPEJOYSTICK_RUDDER 5
440 #define DIDEVTYPEJOYSTICK_WHEEL 6
441 #define DIDEVTYPEJOYSTICK_HEADTRACKER 7
443 #else
444 #define DI8DEVTYPEMOUSE_UNKNOWN 1
445 #define DI8DEVTYPEMOUSE_TRADITIONAL 2
446 #define DI8DEVTYPEMOUSE_FINGERSTICK 3
447 #define DI8DEVTYPEMOUSE_TOUCHPAD 4
448 #define DI8DEVTYPEMOUSE_TRACKBALL 5
449 #define DI8DEVTYPEMOUSE_ABSOLUTE 6
451 #define DI8DEVTYPEKEYBOARD_UNKNOWN 0
452 #define DI8DEVTYPEKEYBOARD_PCXT 1
453 #define DI8DEVTYPEKEYBOARD_OLIVETTI 2
454 #define DI8DEVTYPEKEYBOARD_PCAT 3
455 #define DI8DEVTYPEKEYBOARD_PCENH 4
456 #define DI8DEVTYPEKEYBOARD_NOKIA1050 5
457 #define DI8DEVTYPEKEYBOARD_NOKIA9140 6
458 #define DI8DEVTYPEKEYBOARD_NEC98 7
459 #define DI8DEVTYPEKEYBOARD_NEC98LAPTOP 8
460 #define DI8DEVTYPEKEYBOARD_NEC98106 9
461 #define DI8DEVTYPEKEYBOARD_JAPAN106 10
462 #define DI8DEVTYPEKEYBOARD_JAPANAX 11
463 #define DI8DEVTYPEKEYBOARD_J3100 12
465 #define DI8DEVTYPE_LIMITEDGAMESUBTYPE 1
467 #define DI8DEVTYPEJOYSTICK_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
468 #define DI8DEVTYPEJOYSTICK_STANDARD 2
470 #define DI8DEVTYPEGAMEPAD_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
471 #define DI8DEVTYPEGAMEPAD_STANDARD 2
472 #define DI8DEVTYPEGAMEPAD_TILT 3
474 #define DI8DEVTYPEDRIVING_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
475 #define DI8DEVTYPEDRIVING_COMBINEDPEDALS 2
476 #define DI8DEVTYPEDRIVING_DUALPEDALS 3
477 #define DI8DEVTYPEDRIVING_THREEPEDALS 4
478 #define DI8DEVTYPEDRIVING_HANDHELD 5
480 #define DI8DEVTYPEFLIGHT_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
481 #define DI8DEVTYPEFLIGHT_STICK 2
482 #define DI8DEVTYPEFLIGHT_YOKE 3
483 #define DI8DEVTYPEFLIGHT_RC 4
485 #define DI8DEVTYPE1STPERSON_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
486 #define DI8DEVTYPE1STPERSON_UNKNOWN 2
487 #define DI8DEVTYPE1STPERSON_SIXDOF 3
488 #define DI8DEVTYPE1STPERSON_SHOOTER 4
490 #define DI8DEVTYPESCREENPTR_UNKNOWN 2
491 #define DI8DEVTYPESCREENPTR_LIGHTGUN 3
492 #define DI8DEVTYPESCREENPTR_LIGHTPEN 4
493 #define DI8DEVTYPESCREENPTR_TOUCH 5
495 #define DI8DEVTYPEREMOTE_UNKNOWN 2
497 #define DI8DEVTYPEDEVICECTRL_UNKNOWN 2
498 #define DI8DEVTYPEDEVICECTRL_COMMSSELECTION 3
499 #define DI8DEVTYPEDEVICECTRL_COMMSSELECTION_HARDWIRED 4
501 #define DI8DEVTYPESUPPLEMENTAL_UNKNOWN 2
502 #define DI8DEVTYPESUPPLEMENTAL_2NDHANDCONTROLLER 3
503 #define DI8DEVTYPESUPPLEMENTAL_HEADTRACKER 4
504 #define DI8DEVTYPESUPPLEMENTAL_HANDTRACKER 5
505 #define DI8DEVTYPESUPPLEMENTAL_SHIFTSTICKGATE 6
506 #define DI8DEVTYPESUPPLEMENTAL_SHIFTER 7
507 #define DI8DEVTYPESUPPLEMENTAL_THROTTLE 8
508 #define DI8DEVTYPESUPPLEMENTAL_SPLITTHROTTLE 9
509 #define DI8DEVTYPESUPPLEMENTAL_COMBINEDPEDALS 10
510 #define DI8DEVTYPESUPPLEMENTAL_DUALPEDALS 11
511 #define DI8DEVTYPESUPPLEMENTAL_THREEPEDALS 12
512 #define DI8DEVTYPESUPPLEMENTAL_RUDDERPEDALS 13
513 #endif /* DIRECTINPUT_VERSION <= 0x700 */
515 #define GET_DIDEVICE_TYPE(dwDevType) LOBYTE(dwDevType)
516 #define GET_DIDEVICE_SUBTYPE(dwDevType) HIBYTE(dwDevType)
518 #if(DIRECTINPUT_VERSION >= 0x0500)
519 /* This structure is defined for DirectX 3.0 compatibility */
520 typedef struct DIDEVCAPS_DX3 {
521 DWORD dwSize;
522 DWORD dwFlags;
523 DWORD dwDevType;
524 DWORD dwAxes;
525 DWORD dwButtons;
526 DWORD dwPOVs;
527 } DIDEVCAPS_DX3, *LPDIDEVCAPS_DX3;
528 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
530 typedef struct DIDEVCAPS {
531 DWORD dwSize;
532 DWORD dwFlags;
533 DWORD dwDevType;
534 DWORD dwAxes;
535 DWORD dwButtons;
536 DWORD dwPOVs;
537 #if(DIRECTINPUT_VERSION >= 0x0500)
538 DWORD dwFFSamplePeriod;
539 DWORD dwFFMinTimeResolution;
540 DWORD dwFirmwareRevision;
541 DWORD dwHardwareRevision;
542 DWORD dwFFDriverVersion;
543 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
544 } DIDEVCAPS, *LPDIDEVCAPS;
546 #define DIDC_ATTACHED 0x00000001
547 #define DIDC_POLLEDDEVICE 0x00000002
548 #define DIDC_EMULATED 0x00000004
549 #define DIDC_POLLEDDATAFORMAT 0x00000008
550 #if(DIRECTINPUT_VERSION >= 0x0500)
551 #define DIDC_FORCEFEEDBACK 0x00000100
552 #define DIDC_FFATTACK 0x00000200
553 #define DIDC_FFFADE 0x00000400
554 #define DIDC_SATURATION 0x00000800
555 #define DIDC_POSNEGCOEFFICIENTS 0x00001000
556 #define DIDC_POSNEGSATURATION 0x00002000
557 #define DIDC_DEADBAND 0x00004000
558 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
559 #define DIDC_STARTDELAY 0x00008000
560 #if(DIRECTINPUT_VERSION >= 0x050a)
561 #define DIDC_ALIAS 0x00010000
562 #define DIDC_PHANTOM 0x00020000
563 #endif /* DIRECTINPUT_VERSION >= 0x050a */
564 #if(DIRECTINPUT_VERSION >= 0x0800)
565 #define DIDC_HIDDEN 0x00040000
566 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
568 #define DIDFT_ALL 0x00000000
570 #define DIDFT_RELAXIS 0x00000001
571 #define DIDFT_ABSAXIS 0x00000002
572 #define DIDFT_AXIS 0x00000003
574 #define DIDFT_PSHBUTTON 0x00000004
575 #define DIDFT_TGLBUTTON 0x00000008
576 #define DIDFT_BUTTON 0x0000000C
578 #define DIDFT_POV 0x00000010
579 #define DIDFT_COLLECTION 0x00000040
580 #define DIDFT_NODATA 0x00000080
582 #define DIDFT_ANYINSTANCE 0x00FFFF00
583 #define DIDFT_INSTANCEMASK DIDFT_ANYINSTANCE
584 #define DIDFT_MAKEINSTANCE(n) ((WORD)(n) << 8)
585 #define DIDFT_GETTYPE(n) LOBYTE(n)
586 #define DIDFT_GETINSTANCE(n) LOWORD((n) >> 8)
587 #define DIDFT_FFACTUATOR 0x01000000
588 #define DIDFT_FFEFFECTTRIGGER 0x02000000
589 #if(DIRECTINPUT_VERSION >= 0x050a)
590 #define DIDFT_OUTPUT 0x10000000
591 #define DIDFT_VENDORDEFINED 0x04000000
592 #define DIDFT_ALIAS 0x08000000
593 #endif /* DIRECTINPUT_VERSION >= 0x050a */
594 #ifndef DIDFT_OPTIONAL
595 #define DIDFT_OPTIONAL 0x80000000
596 #endif
598 #define DIDFT_ENUMCOLLECTION(n) ((WORD)(n) << 8)
599 #define DIDFT_NOCOLLECTION 0x00FFFF00
601 #ifndef DIJ_RINGZERO
603 typedef struct _DIOBJECTDATAFORMAT {
604 const GUID *pguid;
605 DWORD dwOfs;
606 DWORD dwType;
607 DWORD dwFlags;
608 } DIOBJECTDATAFORMAT, *LPDIOBJECTDATAFORMAT;
609 typedef const DIOBJECTDATAFORMAT *LPCDIOBJECTDATAFORMAT;
611 typedef struct _DIDATAFORMAT {
612 DWORD dwSize;
613 DWORD dwObjSize;
614 DWORD dwFlags;
615 DWORD dwDataSize;
616 DWORD dwNumObjs;
617 LPDIOBJECTDATAFORMAT rgodf;
618 } DIDATAFORMAT, *LPDIDATAFORMAT;
619 typedef const DIDATAFORMAT *LPCDIDATAFORMAT;
621 #define DIDF_ABSAXIS 0x00000001
622 #define DIDF_RELAXIS 0x00000002
624 #ifdef __cplusplus
625 extern "C" {
626 #endif
627 extern const DIDATAFORMAT c_dfDIMouse;
629 #if(DIRECTINPUT_VERSION >= 0x0700)
630 extern const DIDATAFORMAT c_dfDIMouse2;
631 #endif /* DIRECTINPUT_VERSION >= 0x0700 */
633 extern const DIDATAFORMAT c_dfDIKeyboard;
635 #if(DIRECTINPUT_VERSION >= 0x0500)
636 extern const DIDATAFORMAT c_dfDIJoystick;
637 extern const DIDATAFORMAT c_dfDIJoystick2;
638 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
640 #ifdef __cplusplus
642 #endif
645 #if DIRECTINPUT_VERSION > 0x0700
647 typedef struct _DIACTIONA {
648 UINT_PTR uAppData;
649 DWORD dwSemantic;
650 OPTIONAL DWORD dwFlags;
651 OPTIONAL union {
652 LPCSTR lptszActionName;
653 UINT uResIdString;
655 OPTIONAL GUID guidInstance;
656 OPTIONAL DWORD dwObjID;
657 OPTIONAL DWORD dwHow;
658 } DIACTIONA, *LPDIACTIONA ;
659 typedef struct _DIACTIONW {
660 UINT_PTR uAppData;
661 DWORD dwSemantic;
662 OPTIONAL DWORD dwFlags;
663 OPTIONAL union {
664 LPCWSTR lptszActionName;
665 UINT uResIdString;
667 OPTIONAL GUID guidInstance;
668 OPTIONAL DWORD dwObjID;
669 OPTIONAL DWORD dwHow;
670 } DIACTIONW, *LPDIACTIONW ;
671 #ifdef UNICODE
672 typedef DIACTIONW DIACTION;
673 typedef LPDIACTIONW LPDIACTION;
674 #else
675 typedef DIACTIONA DIACTION;
676 typedef LPDIACTIONA LPDIACTION;
677 #endif // UNICODE
679 typedef const DIACTIONA *LPCDIACTIONA;
680 typedef const DIACTIONW *LPCDIACTIONW;
681 #ifdef UNICODE
682 typedef DIACTIONW DIACTION;
683 typedef LPCDIACTIONW LPCDIACTION;
684 #else
685 typedef DIACTIONA DIACTION;
686 typedef LPCDIACTIONA LPCDIACTION;
687 #endif // UNICODE
688 typedef const DIACTION *LPCDIACTION;
691 #define DIA_FORCEFEEDBACK 0x00000001
692 #define DIA_APPMAPPED 0x00000002
693 #define DIA_APPNOMAP 0x00000004
694 #define DIA_NORANGE 0x00000008
695 #define DIA_APPFIXED 0x00000010
697 #define DIAH_UNMAPPED 0x00000000
698 #define DIAH_USERCONFIG 0x00000001
699 #define DIAH_APPREQUESTED 0x00000002
700 #define DIAH_HWAPP 0x00000004
701 #define DIAH_HWDEFAULT 0x00000008
702 #define DIAH_DEFAULT 0x00000020
703 #define DIAH_ERROR 0x80000000
705 typedef struct _DIACTIONFORMATA {
706 DWORD dwSize;
707 DWORD dwActionSize;
708 DWORD dwDataSize;
709 DWORD dwNumActions;
710 LPDIACTIONA rgoAction;
711 GUID guidActionMap;
712 DWORD dwGenre;
713 DWORD dwBufferSize;
714 OPTIONAL LONG lAxisMin;
715 OPTIONAL LONG lAxisMax;
716 OPTIONAL HINSTANCE hInstString;
717 FILETIME ftTimeStamp;
718 DWORD dwCRC;
719 CHAR tszActionMap[MAX_PATH];
720 } DIACTIONFORMATA, *LPDIACTIONFORMATA;
721 typedef struct _DIACTIONFORMATW {
722 DWORD dwSize;
723 DWORD dwActionSize;
724 DWORD dwDataSize;
725 DWORD dwNumActions;
726 LPDIACTIONW rgoAction;
727 GUID guidActionMap;
728 DWORD dwGenre;
729 DWORD dwBufferSize;
730 OPTIONAL LONG lAxisMin;
731 OPTIONAL LONG lAxisMax;
732 OPTIONAL HINSTANCE hInstString;
733 FILETIME ftTimeStamp;
734 DWORD dwCRC;
735 WCHAR tszActionMap[MAX_PATH];
736 } DIACTIONFORMATW, *LPDIACTIONFORMATW;
737 #ifdef UNICODE
738 typedef DIACTIONFORMATW DIACTIONFORMAT;
739 typedef LPDIACTIONFORMATW LPDIACTIONFORMAT;
740 #else
741 typedef DIACTIONFORMATA DIACTIONFORMAT;
742 typedef LPDIACTIONFORMATA LPDIACTIONFORMAT;
743 #endif // UNICODE
744 typedef const DIACTIONFORMATA *LPCDIACTIONFORMATA;
745 typedef const DIACTIONFORMATW *LPCDIACTIONFORMATW;
746 #ifdef UNICODE
747 typedef DIACTIONFORMATW DIACTIONFORMAT;
748 typedef LPCDIACTIONFORMATW LPCDIACTIONFORMAT;
749 #else
750 typedef DIACTIONFORMATA DIACTIONFORMAT;
751 typedef LPCDIACTIONFORMATA LPCDIACTIONFORMAT;
752 #endif // UNICODE
753 typedef const DIACTIONFORMAT *LPCDIACTIONFORMAT;
755 #define DIAFTS_NEWDEVICELOW 0xFFFFFFFF
756 #define DIAFTS_NEWDEVICEHIGH 0xFFFFFFFF
757 #define DIAFTS_UNUSEDDEVICELOW 0x00000000
758 #define DIAFTS_UNUSEDDEVICEHIGH 0x00000000
760 #define DIDBAM_DEFAULT 0x00000000
761 #define DIDBAM_PRESERVE 0x00000001
762 #define DIDBAM_INITIALIZE 0x00000002
763 #define DIDBAM_HWDEFAULTS 0x00000004
765 #define DIDSAM_DEFAULT 0x00000000
766 #define DIDSAM_NOUSER 0x00000001
767 #define DIDSAM_FORCESAVE 0x00000002
769 #define DICD_DEFAULT 0x00000000
770 #define DICD_EDIT 0x00000001
773 * The following definition is normally defined in d3dtypes.h
775 #ifndef D3DCOLOR_DEFINED
776 typedef DWORD D3DCOLOR;
777 #define D3DCOLOR_DEFINED
778 #endif
780 typedef struct _DICOLORSET{
781 DWORD dwSize;
782 D3DCOLOR cTextFore;
783 D3DCOLOR cTextHighlight;
784 D3DCOLOR cCalloutLine;
785 D3DCOLOR cCalloutHighlight;
786 D3DCOLOR cBorder;
787 D3DCOLOR cControlFill;
788 D3DCOLOR cHighlightFill;
789 D3DCOLOR cAreaFill;
790 } DICOLORSET, *LPDICOLORSET;
791 typedef const DICOLORSET *LPCDICOLORSET;
794 typedef struct _DICONFIGUREDEVICESPARAMSA{
795 DWORD dwSize;
796 DWORD dwcUsers;
797 LPSTR lptszUserNames;
798 DWORD dwcFormats;
799 LPDIACTIONFORMATA lprgFormats;
800 HWND hwnd;
801 DICOLORSET dics;
802 IUnknown FAR * lpUnkDDSTarget;
803 } DICONFIGUREDEVICESPARAMSA, *LPDICONFIGUREDEVICESPARAMSA;
804 typedef struct _DICONFIGUREDEVICESPARAMSW{
805 DWORD dwSize;
806 DWORD dwcUsers;
807 LPWSTR lptszUserNames;
808 DWORD dwcFormats;
809 LPDIACTIONFORMATW lprgFormats;
810 HWND hwnd;
811 DICOLORSET dics;
812 IUnknown FAR * lpUnkDDSTarget;
813 } DICONFIGUREDEVICESPARAMSW, *LPDICONFIGUREDEVICESPARAMSW;
814 #ifdef UNICODE
815 typedef DICONFIGUREDEVICESPARAMSW DICONFIGUREDEVICESPARAMS;
816 typedef LPDICONFIGUREDEVICESPARAMSW LPDICONFIGUREDEVICESPARAMS;
817 #else
818 typedef DICONFIGUREDEVICESPARAMSA DICONFIGUREDEVICESPARAMS;
819 typedef LPDICONFIGUREDEVICESPARAMSA LPDICONFIGUREDEVICESPARAMS;
820 #endif // UNICODE
821 typedef const DICONFIGUREDEVICESPARAMSA *LPCDICONFIGUREDEVICESPARAMSA;
822 typedef const DICONFIGUREDEVICESPARAMSW *LPCDICONFIGUREDEVICESPARAMSW;
823 #ifdef UNICODE
824 typedef DICONFIGUREDEVICESPARAMSW DICONFIGUREDEVICESPARAMS;
825 typedef LPCDICONFIGUREDEVICESPARAMSW LPCDICONFIGUREDEVICESPARAMS;
826 #else
827 typedef DICONFIGUREDEVICESPARAMSA DICONFIGUREDEVICESPARAMS;
828 typedef LPCDICONFIGUREDEVICESPARAMSA LPCDICONFIGUREDEVICESPARAMS;
829 #endif // UNICODE
830 typedef const DICONFIGUREDEVICESPARAMS *LPCDICONFIGUREDEVICESPARAMS;
833 #define DIDIFT_CONFIGURATION 0x00000001
834 #define DIDIFT_OVERLAY 0x00000002
836 #define DIDAL_CENTERED 0x00000000
837 #define DIDAL_LEFTALIGNED 0x00000001
838 #define DIDAL_RIGHTALIGNED 0x00000002
839 #define DIDAL_MIDDLE 0x00000000
840 #define DIDAL_TOPALIGNED 0x00000004
841 #define DIDAL_BOTTOMALIGNED 0x00000008
843 typedef struct _DIDEVICEIMAGEINFOA {
844 CHAR tszImagePath[MAX_PATH];
845 DWORD dwFlags;
846 // These are valid if DIDIFT_OVERLAY is present in dwFlags.
847 DWORD dwViewID;
848 RECT rcOverlay;
849 DWORD dwObjID;
850 DWORD dwcValidPts;
851 POINT rgptCalloutLine[5];
852 RECT rcCalloutRect;
853 DWORD dwTextAlign;
854 } DIDEVICEIMAGEINFOA, *LPDIDEVICEIMAGEINFOA;
855 typedef struct _DIDEVICEIMAGEINFOW {
856 WCHAR tszImagePath[MAX_PATH];
857 DWORD dwFlags;
858 // These are valid if DIDIFT_OVERLAY is present in dwFlags.
859 DWORD dwViewID;
860 RECT rcOverlay;
861 DWORD dwObjID;
862 DWORD dwcValidPts;
863 POINT rgptCalloutLine[5];
864 RECT rcCalloutRect;
865 DWORD dwTextAlign;
866 } DIDEVICEIMAGEINFOW, *LPDIDEVICEIMAGEINFOW;
867 #ifdef UNICODE
868 typedef DIDEVICEIMAGEINFOW DIDEVICEIMAGEINFO;
869 typedef LPDIDEVICEIMAGEINFOW LPDIDEVICEIMAGEINFO;
870 #else
871 typedef DIDEVICEIMAGEINFOA DIDEVICEIMAGEINFO;
872 typedef LPDIDEVICEIMAGEINFOA LPDIDEVICEIMAGEINFO;
873 #endif // UNICODE
874 typedef const DIDEVICEIMAGEINFOA *LPCDIDEVICEIMAGEINFOA;
875 typedef const DIDEVICEIMAGEINFOW *LPCDIDEVICEIMAGEINFOW;
876 #ifdef UNICODE
877 typedef DIDEVICEIMAGEINFOW DIDEVICEIMAGEINFO;
878 typedef LPCDIDEVICEIMAGEINFOW LPCDIDEVICEIMAGEINFO;
879 #else
880 typedef DIDEVICEIMAGEINFOA DIDEVICEIMAGEINFO;
881 typedef LPCDIDEVICEIMAGEINFOA LPCDIDEVICEIMAGEINFO;
882 #endif // UNICODE
883 typedef const DIDEVICEIMAGEINFO *LPCDIDEVICEIMAGEINFO;
885 typedef struct _DIDEVICEIMAGEINFOHEADERA {
886 DWORD dwSize;
887 DWORD dwSizeImageInfo;
888 DWORD dwcViews;
889 DWORD dwcButtons;
890 DWORD dwcAxes;
891 DWORD dwcPOVs;
892 DWORD dwBufferSize;
893 DWORD dwBufferUsed;
894 LPDIDEVICEIMAGEINFOA lprgImageInfoArray;
895 } DIDEVICEIMAGEINFOHEADERA, *LPDIDEVICEIMAGEINFOHEADERA;
896 typedef struct _DIDEVICEIMAGEINFOHEADERW {
897 DWORD dwSize;
898 DWORD dwSizeImageInfo;
899 DWORD dwcViews;
900 DWORD dwcButtons;
901 DWORD dwcAxes;
902 DWORD dwcPOVs;
903 DWORD dwBufferSize;
904 DWORD dwBufferUsed;
905 LPDIDEVICEIMAGEINFOW lprgImageInfoArray;
906 } DIDEVICEIMAGEINFOHEADERW, *LPDIDEVICEIMAGEINFOHEADERW;
907 #ifdef UNICODE
908 typedef DIDEVICEIMAGEINFOHEADERW DIDEVICEIMAGEINFOHEADER;
909 typedef LPDIDEVICEIMAGEINFOHEADERW LPDIDEVICEIMAGEINFOHEADER;
910 #else
911 typedef DIDEVICEIMAGEINFOHEADERA DIDEVICEIMAGEINFOHEADER;
912 typedef LPDIDEVICEIMAGEINFOHEADERA LPDIDEVICEIMAGEINFOHEADER;
913 #endif // UNICODE
914 typedef const DIDEVICEIMAGEINFOHEADERA *LPCDIDEVICEIMAGEINFOHEADERA;
915 typedef const DIDEVICEIMAGEINFOHEADERW *LPCDIDEVICEIMAGEINFOHEADERW;
916 #ifdef UNICODE
917 typedef DIDEVICEIMAGEINFOHEADERW DIDEVICEIMAGEINFOHEADER;
918 typedef LPCDIDEVICEIMAGEINFOHEADERW LPCDIDEVICEIMAGEINFOHEADER;
919 #else
920 typedef DIDEVICEIMAGEINFOHEADERA DIDEVICEIMAGEINFOHEADER;
921 typedef LPCDIDEVICEIMAGEINFOHEADERA LPCDIDEVICEIMAGEINFOHEADER;
922 #endif // UNICODE
923 typedef const DIDEVICEIMAGEINFOHEADER *LPCDIDEVICEIMAGEINFOHEADER;
925 #endif /* DIRECTINPUT_VERSION > 0x0700 */
927 #if(DIRECTINPUT_VERSION >= 0x0500)
928 /* These structures are defined for DirectX 3.0 compatibility */
930 typedef struct DIDEVICEOBJECTINSTANCE_DX3A {
931 DWORD dwSize;
932 GUID guidType;
933 DWORD dwOfs;
934 DWORD dwType;
935 DWORD dwFlags;
936 CHAR tszName[MAX_PATH];
937 } DIDEVICEOBJECTINSTANCE_DX3A, *LPDIDEVICEOBJECTINSTANCE_DX3A;
938 typedef struct DIDEVICEOBJECTINSTANCE_DX3W {
939 DWORD dwSize;
940 GUID guidType;
941 DWORD dwOfs;
942 DWORD dwType;
943 DWORD dwFlags;
944 WCHAR tszName[MAX_PATH];
945 } DIDEVICEOBJECTINSTANCE_DX3W, *LPDIDEVICEOBJECTINSTANCE_DX3W;
946 #ifdef UNICODE
947 typedef DIDEVICEOBJECTINSTANCE_DX3W DIDEVICEOBJECTINSTANCE_DX3;
948 typedef LPDIDEVICEOBJECTINSTANCE_DX3W LPDIDEVICEOBJECTINSTANCE_DX3;
949 #else
950 typedef DIDEVICEOBJECTINSTANCE_DX3A DIDEVICEOBJECTINSTANCE_DX3;
951 typedef LPDIDEVICEOBJECTINSTANCE_DX3A LPDIDEVICEOBJECTINSTANCE_DX3;
952 #endif // UNICODE
953 typedef const DIDEVICEOBJECTINSTANCE_DX3A *LPCDIDEVICEOBJECTINSTANCE_DX3A;
954 typedef const DIDEVICEOBJECTINSTANCE_DX3W *LPCDIDEVICEOBJECTINSTANCE_DX3W;
955 typedef const DIDEVICEOBJECTINSTANCE_DX3 *LPCDIDEVICEOBJECTINSTANCE_DX3;
956 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
958 typedef struct DIDEVICEOBJECTINSTANCEA {
959 DWORD dwSize;
960 GUID guidType;
961 DWORD dwOfs;
962 DWORD dwType;
963 DWORD dwFlags;
964 CHAR tszName[MAX_PATH];
965 #if(DIRECTINPUT_VERSION >= 0x0500)
966 DWORD dwFFMaxForce;
967 DWORD dwFFForceResolution;
968 WORD wCollectionNumber;
969 WORD wDesignatorIndex;
970 WORD wUsagePage;
971 WORD wUsage;
972 DWORD dwDimension;
973 WORD wExponent;
974 WORD wReportId;
975 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
976 } DIDEVICEOBJECTINSTANCEA, *LPDIDEVICEOBJECTINSTANCEA;
977 typedef struct DIDEVICEOBJECTINSTANCEW {
978 DWORD dwSize;
979 GUID guidType;
980 DWORD dwOfs;
981 DWORD dwType;
982 DWORD dwFlags;
983 WCHAR tszName[MAX_PATH];
984 #if(DIRECTINPUT_VERSION >= 0x0500)
985 DWORD dwFFMaxForce;
986 DWORD dwFFForceResolution;
987 WORD wCollectionNumber;
988 WORD wDesignatorIndex;
989 WORD wUsagePage;
990 WORD wUsage;
991 DWORD dwDimension;
992 WORD wExponent;
993 WORD wReportId;
994 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
995 } DIDEVICEOBJECTINSTANCEW, *LPDIDEVICEOBJECTINSTANCEW;
996 #ifdef UNICODE
997 typedef DIDEVICEOBJECTINSTANCEW DIDEVICEOBJECTINSTANCE;
998 typedef LPDIDEVICEOBJECTINSTANCEW LPDIDEVICEOBJECTINSTANCE;
999 #else
1000 typedef DIDEVICEOBJECTINSTANCEA DIDEVICEOBJECTINSTANCE;
1001 typedef LPDIDEVICEOBJECTINSTANCEA LPDIDEVICEOBJECTINSTANCE;
1002 #endif // UNICODE
1003 typedef const DIDEVICEOBJECTINSTANCEA *LPCDIDEVICEOBJECTINSTANCEA;
1004 typedef const DIDEVICEOBJECTINSTANCEW *LPCDIDEVICEOBJECTINSTANCEW;
1005 typedef const DIDEVICEOBJECTINSTANCE *LPCDIDEVICEOBJECTINSTANCE;
1007 typedef BOOL (FAR PASCAL * LPDIENUMDEVICEOBJECTSCALLBACKA)(LPCDIDEVICEOBJECTINSTANCEA, LPVOID);
1008 typedef BOOL (FAR PASCAL * LPDIENUMDEVICEOBJECTSCALLBACKW)(LPCDIDEVICEOBJECTINSTANCEW, LPVOID);
1009 #ifdef UNICODE
1010 #define LPDIENUMDEVICEOBJECTSCALLBACK LPDIENUMDEVICEOBJECTSCALLBACKW
1011 #else
1012 #define LPDIENUMDEVICEOBJECTSCALLBACK LPDIENUMDEVICEOBJECTSCALLBACKA
1013 #endif // !UNICODE
1015 #if(DIRECTINPUT_VERSION >= 0x0500)
1016 #define DIDOI_FFACTUATOR 0x00000001
1017 #define DIDOI_FFEFFECTTRIGGER 0x00000002
1018 #define DIDOI_POLLED 0x00008000
1019 #define DIDOI_ASPECTPOSITION 0x00000100
1020 #define DIDOI_ASPECTVELOCITY 0x00000200
1021 #define DIDOI_ASPECTACCEL 0x00000300
1022 #define DIDOI_ASPECTFORCE 0x00000400
1023 #define DIDOI_ASPECTMASK 0x00000F00
1024 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
1025 #if(DIRECTINPUT_VERSION >= 0x050a)
1026 #define DIDOI_GUIDISUSAGE 0x00010000
1027 #endif /* DIRECTINPUT_VERSION >= 0x050a */
1029 typedef struct DIPROPHEADER {
1030 DWORD dwSize;
1031 DWORD dwHeaderSize;
1032 DWORD dwObj;
1033 DWORD dwHow;
1034 } DIPROPHEADER, *LPDIPROPHEADER;
1035 typedef const DIPROPHEADER *LPCDIPROPHEADER;
1037 #define DIPH_DEVICE 0
1038 #define DIPH_BYOFFSET 1
1039 #define DIPH_BYID 2
1040 #if(DIRECTINPUT_VERSION >= 0x050a)
1041 #define DIPH_BYUSAGE 3
1042 #endif /* DIRECTINPUT_VERSION >= 0x050a */
1044 #if(DIRECTINPUT_VERSION >= 0x050a)
1045 #define DIMAKEUSAGEDWORD(UsagePage, Usage) \
1046 (DWORD)MAKELONG(Usage, UsagePage)
1047 #endif /* DIRECTINPUT_VERSION >= 0x050a */
1049 typedef struct DIPROPDWORD {
1050 DIPROPHEADER diph;
1051 DWORD dwData;
1052 } DIPROPDWORD, *LPDIPROPDWORD;
1053 typedef const DIPROPDWORD *LPCDIPROPDWORD;
1055 #if(DIRECTINPUT_VERSION >= 0x0800)
1056 typedef struct DIPROPPOINTER {
1057 DIPROPHEADER diph;
1058 UINT_PTR uData;
1059 } DIPROPPOINTER, *LPDIPROPPOINTER;
1060 typedef const DIPROPPOINTER *LPCDIPROPPOINTER;
1061 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
1063 typedef struct DIPROPRANGE {
1064 DIPROPHEADER diph;
1065 LONG lMin;
1066 LONG lMax;
1067 } DIPROPRANGE, *LPDIPROPRANGE;
1068 typedef const DIPROPRANGE *LPCDIPROPRANGE;
1070 #define DIPROPRANGE_NOMIN ((LONG)0x80000000)
1071 #define DIPROPRANGE_NOMAX ((LONG)0x7FFFFFFF)
1073 #if(DIRECTINPUT_VERSION >= 0x050a)
1074 typedef struct DIPROPCAL {
1075 DIPROPHEADER diph;
1076 LONG lMin;
1077 LONG lCenter;
1078 LONG lMax;
1079 } DIPROPCAL, *LPDIPROPCAL;
1080 typedef const DIPROPCAL *LPCDIPROPCAL;
1082 typedef struct DIPROPCALPOV {
1083 DIPROPHEADER diph;
1084 LONG lMin[5];
1085 LONG lMax[5];
1086 } DIPROPCALPOV, *LPDIPROPCALPOV;
1087 typedef const DIPROPCALPOV *LPCDIPROPCALPOV;
1089 typedef struct DIPROPGUIDANDPATH {
1090 DIPROPHEADER diph;
1091 GUID guidClass;
1092 WCHAR wszPath[MAX_PATH];
1093 } DIPROPGUIDANDPATH, *LPDIPROPGUIDANDPATH;
1094 typedef const DIPROPGUIDANDPATH *LPCDIPROPGUIDANDPATH;
1096 typedef struct DIPROPSTRING {
1097 DIPROPHEADER diph;
1098 WCHAR wsz[MAX_PATH];
1099 } DIPROPSTRING, *LPDIPROPSTRING;
1100 typedef const DIPROPSTRING *LPCDIPROPSTRING;
1102 #endif /* DIRECTINPUT_VERSION >= 0x050a */
1104 #if(DIRECTINPUT_VERSION >= 0x0800)
1105 #define MAXCPOINTSNUM 8
1107 typedef struct _CPOINT
1109 LONG lP; // raw value
1110 DWORD dwLog; // logical_value / max_logical_value * 10000
1111 } CPOINT, *PCPOINT;
1113 typedef struct DIPROPCPOINTS {
1114 DIPROPHEADER diph;
1115 DWORD dwCPointsNum;
1116 CPOINT cp[MAXCPOINTSNUM];
1117 } DIPROPCPOINTS, *LPDIPROPCPOINTS;
1118 typedef const DIPROPCPOINTS *LPCDIPROPCPOINTS;
1119 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
1122 #ifdef __cplusplus
1123 #define MAKEDIPROP(prop) (*(const GUID *)(prop))
1124 #else
1125 #define MAKEDIPROP(prop) ((REFGUID)(prop))
1126 #endif
1128 #define DIPROP_BUFFERSIZE MAKEDIPROP(1)
1130 #define DIPROP_AXISMODE MAKEDIPROP(2)
1132 #define DIPROPAXISMODE_ABS 0
1133 #define DIPROPAXISMODE_REL 1
1135 #define DIPROP_GRANULARITY MAKEDIPROP(3)
1137 #define DIPROP_RANGE MAKEDIPROP(4)
1139 #define DIPROP_DEADZONE MAKEDIPROP(5)
1141 #define DIPROP_SATURATION MAKEDIPROP(6)
1143 #define DIPROP_FFGAIN MAKEDIPROP(7)
1145 #define DIPROP_FFLOAD MAKEDIPROP(8)
1147 #define DIPROP_AUTOCENTER MAKEDIPROP(9)
1149 #define DIPROPAUTOCENTER_OFF 0
1150 #define DIPROPAUTOCENTER_ON 1
1152 #define DIPROP_CALIBRATIONMODE MAKEDIPROP(10)
1154 #define DIPROPCALIBRATIONMODE_COOKED 0
1155 #define DIPROPCALIBRATIONMODE_RAW 1
1157 #if(DIRECTINPUT_VERSION >= 0x050a)
1158 #define DIPROP_CALIBRATION MAKEDIPROP(11)
1160 #define DIPROP_GUIDANDPATH MAKEDIPROP(12)
1162 #define DIPROP_INSTANCENAME MAKEDIPROP(13)
1164 #define DIPROP_PRODUCTNAME MAKEDIPROP(14)
1165 #endif /* DIRECTINPUT_VERSION >= 0x050a */
1167 #if(DIRECTINPUT_VERSION >= 0x05b2)
1168 #define DIPROP_JOYSTICKID MAKEDIPROP(15)
1170 #define DIPROP_GETPORTDISPLAYNAME MAKEDIPROP(16)
1172 #endif /* DIRECTINPUT_VERSION >= 0x05b2 */
1174 #if(DIRECTINPUT_VERSION >= 0x0700)
1175 #define DIPROP_PHYSICALRANGE MAKEDIPROP(18)
1177 #define DIPROP_LOGICALRANGE MAKEDIPROP(19)
1178 #endif /* DIRECTINPUT_VERSION >= 0x0700 */
1180 #if(DIRECTINPUT_VERSION >= 0x0800)
1181 #define DIPROP_KEYNAME MAKEDIPROP(20)
1183 #define DIPROP_CPOINTS MAKEDIPROP(21)
1185 #define DIPROP_APPDATA MAKEDIPROP(22)
1187 #define DIPROP_SCANCODE MAKEDIPROP(23)
1189 #define DIPROP_VIDPID MAKEDIPROP(24)
1191 #define DIPROP_USERNAME MAKEDIPROP(25)
1193 #define DIPROP_TYPENAME MAKEDIPROP(26)
1194 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
1197 typedef struct DIDEVICEOBJECTDATA_DX3 {
1198 DWORD dwOfs;
1199 DWORD dwData;
1200 DWORD dwTimeStamp;
1201 DWORD dwSequence;
1202 } DIDEVICEOBJECTDATA_DX3, *LPDIDEVICEOBJECTDATA_DX3;
1203 typedef const DIDEVICEOBJECTDATA_DX3 *LPCDIDEVICEOBJECTDATA_DX;
1205 typedef struct DIDEVICEOBJECTDATA {
1206 DWORD dwOfs;
1207 DWORD dwData;
1208 DWORD dwTimeStamp;
1209 DWORD dwSequence;
1210 #if(DIRECTINPUT_VERSION >= 0x0800)
1211 UINT_PTR uAppData;
1212 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
1213 } DIDEVICEOBJECTDATA, *LPDIDEVICEOBJECTDATA;
1214 typedef const DIDEVICEOBJECTDATA *LPCDIDEVICEOBJECTDATA;
1216 #define DIGDD_PEEK 0x00000001
1218 #define DISEQUENCE_COMPARE(dwSequence1, cmp, dwSequence2) \
1219 ((int)((dwSequence1) - (dwSequence2)) cmp 0)
1220 #define DISCL_EXCLUSIVE 0x00000001
1221 #define DISCL_NONEXCLUSIVE 0x00000002
1222 #define DISCL_FOREGROUND 0x00000004
1223 #define DISCL_BACKGROUND 0x00000008
1224 #define DISCL_NOWINKEY 0x00000010
1226 #if(DIRECTINPUT_VERSION >= 0x0500)
1227 /* These structures are defined for DirectX 3.0 compatibility */
1229 typedef struct DIDEVICEINSTANCE_DX3A {
1230 DWORD dwSize;
1231 GUID guidInstance;
1232 GUID guidProduct;
1233 DWORD dwDevType;
1234 CHAR tszInstanceName[MAX_PATH];
1235 CHAR tszProductName[MAX_PATH];
1236 } DIDEVICEINSTANCE_DX3A, *LPDIDEVICEINSTANCE_DX3A;
1237 typedef struct DIDEVICEINSTANCE_DX3W {
1238 DWORD dwSize;
1239 GUID guidInstance;
1240 GUID guidProduct;
1241 DWORD dwDevType;
1242 WCHAR tszInstanceName[MAX_PATH];
1243 WCHAR tszProductName[MAX_PATH];
1244 } DIDEVICEINSTANCE_DX3W, *LPDIDEVICEINSTANCE_DX3W;
1245 #ifdef UNICODE
1246 typedef DIDEVICEINSTANCE_DX3W DIDEVICEINSTANCE_DX3;
1247 typedef LPDIDEVICEINSTANCE_DX3W LPDIDEVICEINSTANCE_DX3;
1248 #else
1249 typedef DIDEVICEINSTANCE_DX3A DIDEVICEINSTANCE_DX3;
1250 typedef LPDIDEVICEINSTANCE_DX3A LPDIDEVICEINSTANCE_DX3;
1251 #endif // UNICODE
1252 typedef const DIDEVICEINSTANCE_DX3A *LPCDIDEVICEINSTANCE_DX3A;
1253 typedef const DIDEVICEINSTANCE_DX3W *LPCDIDEVICEINSTANCE_DX3W;
1254 typedef const DIDEVICEINSTANCE_DX3 *LPCDIDEVICEINSTANCE_DX3;
1255 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
1257 typedef struct DIDEVICEINSTANCEA {
1258 DWORD dwSize;
1259 GUID guidInstance;
1260 GUID guidProduct;
1261 DWORD dwDevType;
1262 CHAR tszInstanceName[MAX_PATH];
1263 CHAR tszProductName[MAX_PATH];
1264 #if(DIRECTINPUT_VERSION >= 0x0500)
1265 GUID guidFFDriver;
1266 WORD wUsagePage;
1267 WORD wUsage;
1268 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
1269 } DIDEVICEINSTANCEA, *LPDIDEVICEINSTANCEA;
1270 typedef struct DIDEVICEINSTANCEW {
1271 DWORD dwSize;
1272 GUID guidInstance;
1273 GUID guidProduct;
1274 DWORD dwDevType;
1275 WCHAR tszInstanceName[MAX_PATH];
1276 WCHAR tszProductName[MAX_PATH];
1277 #if(DIRECTINPUT_VERSION >= 0x0500)
1278 GUID guidFFDriver;
1279 WORD wUsagePage;
1280 WORD wUsage;
1281 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
1282 } DIDEVICEINSTANCEW, *LPDIDEVICEINSTANCEW;
1283 #ifdef UNICODE
1284 typedef DIDEVICEINSTANCEW DIDEVICEINSTANCE;
1285 typedef LPDIDEVICEINSTANCEW LPDIDEVICEINSTANCE;
1286 #else
1287 typedef DIDEVICEINSTANCEA DIDEVICEINSTANCE;
1288 typedef LPDIDEVICEINSTANCEA LPDIDEVICEINSTANCE;
1289 #endif // UNICODE
1291 typedef const DIDEVICEINSTANCEA *LPCDIDEVICEINSTANCEA;
1292 typedef const DIDEVICEINSTANCEW *LPCDIDEVICEINSTANCEW;
1293 #ifdef UNICODE
1294 typedef DIDEVICEINSTANCEW DIDEVICEINSTANCE;
1295 typedef LPCDIDEVICEINSTANCEW LPCDIDEVICEINSTANCE;
1296 #else
1297 typedef DIDEVICEINSTANCEA DIDEVICEINSTANCE;
1298 typedef LPCDIDEVICEINSTANCEA LPCDIDEVICEINSTANCE;
1299 #endif // UNICODE
1300 typedef const DIDEVICEINSTANCE *LPCDIDEVICEINSTANCE;
1302 #undef INTERFACE
1303 #define INTERFACE IDirectInputDeviceW
1305 DECLARE_INTERFACE_(IDirectInputDeviceW, IUnknown)
1307 /*** IUnknown methods ***/
1308 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1309 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1310 STDMETHOD_(ULONG,Release)(THIS) PURE;
1312 /*** IDirectInputDeviceW methods ***/
1313 STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE;
1314 STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE;
1315 STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE;
1316 STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE;
1317 STDMETHOD(Acquire)(THIS) PURE;
1318 STDMETHOD(Unacquire)(THIS) PURE;
1319 STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE;
1320 STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1321 STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE;
1322 STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE;
1323 STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE;
1324 STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE;
1325 STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE;
1326 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
1327 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE;
1330 typedef struct IDirectInputDeviceW *LPDIRECTINPUTDEVICEW;
1332 #undef INTERFACE
1333 #define INTERFACE IDirectInputDeviceA
1335 DECLARE_INTERFACE_(IDirectInputDeviceA, IUnknown)
1337 /*** IUnknown methods ***/
1338 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1339 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1340 STDMETHOD_(ULONG,Release)(THIS) PURE;
1342 /*** IDirectInputDeviceA methods ***/
1343 STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE;
1344 STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE;
1345 STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE;
1346 STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE;
1347 STDMETHOD(Acquire)(THIS) PURE;
1348 STDMETHOD(Unacquire)(THIS) PURE;
1349 STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE;
1350 STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1351 STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE;
1352 STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE;
1353 STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE;
1354 STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE;
1355 STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE;
1356 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
1357 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE;
1360 typedef struct IDirectInputDeviceA *LPDIRECTINPUTDEVICEA;
1362 #ifdef UNICODE
1363 #define IID_IDirectInputDevice IID_IDirectInputDeviceW
1364 #define IDirectInputDevice IDirectInputDeviceW
1365 #define IDirectInputDeviceVtbl IDirectInputDeviceWVtbl
1366 #else
1367 #define IID_IDirectInputDevice IID_IDirectInputDeviceA
1368 #define IDirectInputDevice IDirectInputDeviceA
1369 #define IDirectInputDeviceVtbl IDirectInputDeviceAVtbl
1370 #endif
1371 typedef struct IDirectInputDevice *LPDIRECTINPUTDEVICE;
1373 #if !defined(__cplusplus) || defined(CINTERFACE)
1374 #define IDirectInputDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1375 #define IDirectInputDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
1376 #define IDirectInputDevice_Release(p) (p)->lpVtbl->Release(p)
1377 #define IDirectInputDevice_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
1378 #define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
1379 #define IDirectInputDevice_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
1380 #define IDirectInputDevice_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
1381 #define IDirectInputDevice_Acquire(p) (p)->lpVtbl->Acquire(p)
1382 #define IDirectInputDevice_Unacquire(p) (p)->lpVtbl->Unacquire(p)
1383 #define IDirectInputDevice_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
1384 #define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
1385 #define IDirectInputDevice_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
1386 #define IDirectInputDevice_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
1387 #define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
1388 #define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
1389 #define IDirectInputDevice_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
1390 #define IDirectInputDevice_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
1391 #define IDirectInputDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
1392 #else
1393 #define IDirectInputDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1394 #define IDirectInputDevice_AddRef(p) (p)->AddRef()
1395 #define IDirectInputDevice_Release(p) (p)->Release()
1396 #define IDirectInputDevice_GetCapabilities(p,a) (p)->GetCapabilities(a)
1397 #define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
1398 #define IDirectInputDevice_GetProperty(p,a,b) (p)->GetProperty(a,b)
1399 #define IDirectInputDevice_SetProperty(p,a,b) (p)->SetProperty(a,b)
1400 #define IDirectInputDevice_Acquire(p) (p)->Acquire()
1401 #define IDirectInputDevice_Unacquire(p) (p)->Unacquire()
1402 #define IDirectInputDevice_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
1403 #define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
1404 #define IDirectInputDevice_SetDataFormat(p,a) (p)->SetDataFormat(a)
1405 #define IDirectInputDevice_SetEventNotification(p,a) (p)->SetEventNotification(a)
1406 #define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
1407 #define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
1408 #define IDirectInputDevice_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
1409 #define IDirectInputDevice_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
1410 #define IDirectInputDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
1411 #endif
1413 #endif /* DIJ_RINGZERO */
1416 #if(DIRECTINPUT_VERSION >= 0x0500)
1418 #define DISFFC_RESET 0x00000001
1419 #define DISFFC_STOPALL 0x00000002
1420 #define DISFFC_PAUSE 0x00000004
1421 #define DISFFC_CONTINUE 0x00000008
1422 #define DISFFC_SETACTUATORSON 0x00000010
1423 #define DISFFC_SETACTUATORSOFF 0x00000020
1425 #define DIGFFS_EMPTY 0x00000001
1426 #define DIGFFS_STOPPED 0x00000002
1427 #define DIGFFS_PAUSED 0x00000004
1428 #define DIGFFS_ACTUATORSON 0x00000010
1429 #define DIGFFS_ACTUATORSOFF 0x00000020
1430 #define DIGFFS_POWERON 0x00000040
1431 #define DIGFFS_POWEROFF 0x00000080
1432 #define DIGFFS_SAFETYSWITCHON 0x00000100
1433 #define DIGFFS_SAFETYSWITCHOFF 0x00000200
1434 #define DIGFFS_USERFFSWITCHON 0x00000400
1435 #define DIGFFS_USERFFSWITCHOFF 0x00000800
1436 #define DIGFFS_DEVICELOST 0x80000000
1438 #ifndef DIJ_RINGZERO
1440 typedef struct DIEFFECTINFOA {
1441 DWORD dwSize;
1442 GUID guid;
1443 DWORD dwEffType;
1444 DWORD dwStaticParams;
1445 DWORD dwDynamicParams;
1446 CHAR tszName[MAX_PATH];
1447 } DIEFFECTINFOA, *LPDIEFFECTINFOA;
1448 typedef struct DIEFFECTINFOW {
1449 DWORD dwSize;
1450 GUID guid;
1451 DWORD dwEffType;
1452 DWORD dwStaticParams;
1453 DWORD dwDynamicParams;
1454 WCHAR tszName[MAX_PATH];
1455 } DIEFFECTINFOW, *LPDIEFFECTINFOW;
1456 #ifdef UNICODE
1457 typedef DIEFFECTINFOW DIEFFECTINFO;
1458 typedef LPDIEFFECTINFOW LPDIEFFECTINFO;
1459 #else
1460 typedef DIEFFECTINFOA DIEFFECTINFO;
1461 typedef LPDIEFFECTINFOA LPDIEFFECTINFO;
1462 #endif // UNICODE
1463 typedef const DIEFFECTINFOA *LPCDIEFFECTINFOA;
1464 typedef const DIEFFECTINFOW *LPCDIEFFECTINFOW;
1465 typedef const DIEFFECTINFO *LPCDIEFFECTINFO;
1467 #define DISDD_CONTINUE 0x00000001
1469 typedef BOOL (FAR PASCAL * LPDIENUMEFFECTSCALLBACKA)(LPCDIEFFECTINFOA, LPVOID);
1470 typedef BOOL (FAR PASCAL * LPDIENUMEFFECTSCALLBACKW)(LPCDIEFFECTINFOW, LPVOID);
1471 #ifdef UNICODE
1472 #define LPDIENUMEFFECTSCALLBACK LPDIENUMEFFECTSCALLBACKW
1473 #else
1474 #define LPDIENUMEFFECTSCALLBACK LPDIENUMEFFECTSCALLBACKA
1475 #endif // !UNICODE
1476 typedef BOOL (FAR PASCAL * LPDIENUMCREATEDEFFECTOBJECTSCALLBACK)(LPDIRECTINPUTEFFECT, LPVOID);
1478 #undef INTERFACE
1479 #define INTERFACE IDirectInputDevice2W
1481 DECLARE_INTERFACE_(IDirectInputDevice2W, IDirectInputDeviceW)
1483 /*** IUnknown methods ***/
1484 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1485 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1486 STDMETHOD_(ULONG,Release)(THIS) PURE;
1488 /*** IDirectInputDeviceW methods ***/
1489 STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE;
1490 STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE;
1491 STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE;
1492 STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE;
1493 STDMETHOD(Acquire)(THIS) PURE;
1494 STDMETHOD(Unacquire)(THIS) PURE;
1495 STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE;
1496 STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1497 STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE;
1498 STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE;
1499 STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE;
1500 STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE;
1501 STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE;
1502 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
1503 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE;
1505 /*** IDirectInputDevice2W methods ***/
1506 STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE;
1507 STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW,LPVOID,DWORD) PURE;
1508 STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW,REFGUID) PURE;
1509 STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE;
1510 STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE;
1511 STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE;
1512 STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE;
1513 STDMETHOD(Poll)(THIS) PURE;
1514 STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1517 typedef struct IDirectInputDevice2W *LPDIRECTINPUTDEVICE2W;
1519 #undef INTERFACE
1520 #define INTERFACE IDirectInputDevice2A
1522 DECLARE_INTERFACE_(IDirectInputDevice2A, IDirectInputDeviceA)
1524 /*** IUnknown methods ***/
1525 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1526 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1527 STDMETHOD_(ULONG,Release)(THIS) PURE;
1529 /*** IDirectInputDeviceA methods ***/
1530 STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE;
1531 STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE;
1532 STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE;
1533 STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE;
1534 STDMETHOD(Acquire)(THIS) PURE;
1535 STDMETHOD(Unacquire)(THIS) PURE;
1536 STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE;
1537 STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1538 STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE;
1539 STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE;
1540 STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE;
1541 STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE;
1542 STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE;
1543 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
1544 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE;
1546 /*** IDirectInputDevice2A methods ***/
1547 STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE;
1548 STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA,LPVOID,DWORD) PURE;
1549 STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA,REFGUID) PURE;
1550 STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE;
1551 STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE;
1552 STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE;
1553 STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE;
1554 STDMETHOD(Poll)(THIS) PURE;
1555 STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1558 typedef struct IDirectInputDevice2A *LPDIRECTINPUTDEVICE2A;
1560 #ifdef UNICODE
1561 #define IID_IDirectInputDevice2 IID_IDirectInputDevice2W
1562 #define IDirectInputDevice2 IDirectInputDevice2W
1563 #define IDirectInputDevice2Vtbl IDirectInputDevice2WVtbl
1564 #else
1565 #define IID_IDirectInputDevice2 IID_IDirectInputDevice2A
1566 #define IDirectInputDevice2 IDirectInputDevice2A
1567 #define IDirectInputDevice2Vtbl IDirectInputDevice2AVtbl
1568 #endif
1569 typedef struct IDirectInputDevice2 *LPDIRECTINPUTDEVICE2;
1571 #if !defined(__cplusplus) || defined(CINTERFACE)
1572 #define IDirectInputDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1573 #define IDirectInputDevice2_AddRef(p) (p)->lpVtbl->AddRef(p)
1574 #define IDirectInputDevice2_Release(p) (p)->lpVtbl->Release(p)
1575 #define IDirectInputDevice2_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
1576 #define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
1577 #define IDirectInputDevice2_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
1578 #define IDirectInputDevice2_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
1579 #define IDirectInputDevice2_Acquire(p) (p)->lpVtbl->Acquire(p)
1580 #define IDirectInputDevice2_Unacquire(p) (p)->lpVtbl->Unacquire(p)
1581 #define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
1582 #define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
1583 #define IDirectInputDevice2_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
1584 #define IDirectInputDevice2_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
1585 #define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
1586 #define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
1587 #define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
1588 #define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
1589 #define IDirectInputDevice2_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
1590 #define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d)
1591 #define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c)
1592 #define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b)
1593 #define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a)
1594 #define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a)
1595 #define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c)
1596 #define IDirectInputDevice2_Escape(p,a) (p)->lpVtbl->Escape(p,a)
1597 #define IDirectInputDevice2_Poll(p) (p)->lpVtbl->Poll(p)
1598 #define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d)
1599 #else
1600 #define IDirectInputDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1601 #define IDirectInputDevice2_AddRef(p) (p)->AddRef()
1602 #define IDirectInputDevice2_Release(p) (p)->Release()
1603 #define IDirectInputDevice2_GetCapabilities(p,a) (p)->GetCapabilities(a)
1604 #define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
1605 #define IDirectInputDevice2_GetProperty(p,a,b) (p)->GetProperty(a,b)
1606 #define IDirectInputDevice2_SetProperty(p,a,b) (p)->SetProperty(a,b)
1607 #define IDirectInputDevice2_Acquire(p) (p)->Acquire()
1608 #define IDirectInputDevice2_Unacquire(p) (p)->Unacquire()
1609 #define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
1610 #define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
1611 #define IDirectInputDevice2_SetDataFormat(p,a) (p)->SetDataFormat(a)
1612 #define IDirectInputDevice2_SetEventNotification(p,a) (p)->SetEventNotification(a)
1613 #define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
1614 #define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
1615 #define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
1616 #define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
1617 #define IDirectInputDevice2_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
1618 #define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d)
1619 #define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c)
1620 #define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b)
1621 #define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a)
1622 #define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a)
1623 #define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c)
1624 #define IDirectInputDevice2_Escape(p,a) (p)->Escape(a)
1625 #define IDirectInputDevice2_Poll(p) (p)->Poll()
1626 #define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d)
1627 #endif
1629 #endif /* DIJ_RINGZERO */
1631 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
1633 #if(DIRECTINPUT_VERSION >= 0x0700)
1634 #define DIFEF_DEFAULT 0x00000000
1635 #define DIFEF_INCLUDENONSTANDARD 0x00000001
1636 #define DIFEF_MODIFYIFNEEDED 0x00000010
1638 #ifndef DIJ_RINGZERO
1640 #undef INTERFACE
1641 #define INTERFACE IDirectInputDevice7W
1643 DECLARE_INTERFACE_(IDirectInputDevice7W, IDirectInputDevice2W)
1645 /*** IUnknown methods ***/
1646 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1647 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1648 STDMETHOD_(ULONG,Release)(THIS) PURE;
1650 /*** IDirectInputDevice2W methods ***/
1651 STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE;
1652 STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE;
1653 STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE;
1654 STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE;
1655 STDMETHOD(Acquire)(THIS) PURE;
1656 STDMETHOD(Unacquire)(THIS) PURE;
1657 STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE;
1658 STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1659 STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE;
1660 STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE;
1661 STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE;
1662 STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE;
1663 STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE;
1664 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
1665 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE;
1666 STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE;
1667 STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW,LPVOID,DWORD) PURE;
1668 STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW,REFGUID) PURE;
1669 STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE;
1670 STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE;
1671 STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE;
1672 STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE;
1673 STDMETHOD(Poll)(THIS) PURE;
1674 STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1676 /*** IDirectInputDevice7W methods ***/
1677 STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE;
1678 STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE;
1681 typedef struct IDirectInputDevice7W *LPDIRECTINPUTDEVICE7W;
1683 #undef INTERFACE
1684 #define INTERFACE IDirectInputDevice7A
1686 DECLARE_INTERFACE_(IDirectInputDevice7A, IDirectInputDevice2A)
1688 /*** IUnknown methods ***/
1689 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1690 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1691 STDMETHOD_(ULONG,Release)(THIS) PURE;
1693 /*** IDirectInputDevice2A methods ***/
1694 STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE;
1695 STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE;
1696 STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE;
1697 STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE;
1698 STDMETHOD(Acquire)(THIS) PURE;
1699 STDMETHOD(Unacquire)(THIS) PURE;
1700 STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE;
1701 STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1702 STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE;
1703 STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE;
1704 STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE;
1705 STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE;
1706 STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE;
1707 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
1708 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE;
1709 STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE;
1710 STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA,LPVOID,DWORD) PURE;
1711 STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA,REFGUID) PURE;
1712 STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE;
1713 STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE;
1714 STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE;
1715 STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE;
1716 STDMETHOD(Poll)(THIS) PURE;
1717 STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1719 /*** IDirectInputDevice7A methods ***/
1720 STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE;
1721 STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE;
1724 typedef struct IDirectInputDevice7A *LPDIRECTINPUTDEVICE7A;
1726 #ifdef UNICODE
1727 #define IID_IDirectInputDevice7 IID_IDirectInputDevice7W
1728 #define IDirectInputDevice7 IDirectInputDevice7W
1729 #define IDirectInputDevice7Vtbl IDirectInputDevice7WVtbl
1730 #else
1731 #define IID_IDirectInputDevice7 IID_IDirectInputDevice7A
1732 #define IDirectInputDevice7 IDirectInputDevice7A
1733 #define IDirectInputDevice7Vtbl IDirectInputDevice7AVtbl
1734 #endif
1735 typedef struct IDirectInputDevice7 *LPDIRECTINPUTDEVICE7;
1737 #if !defined(__cplusplus) || defined(CINTERFACE)
1738 #define IDirectInputDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1739 #define IDirectInputDevice7_AddRef(p) (p)->lpVtbl->AddRef(p)
1740 #define IDirectInputDevice7_Release(p) (p)->lpVtbl->Release(p)
1741 #define IDirectInputDevice7_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
1742 #define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
1743 #define IDirectInputDevice7_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
1744 #define IDirectInputDevice7_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
1745 #define IDirectInputDevice7_Acquire(p) (p)->lpVtbl->Acquire(p)
1746 #define IDirectInputDevice7_Unacquire(p) (p)->lpVtbl->Unacquire(p)
1747 #define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
1748 #define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
1749 #define IDirectInputDevice7_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
1750 #define IDirectInputDevice7_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
1751 #define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
1752 #define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
1753 #define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
1754 #define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
1755 #define IDirectInputDevice7_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
1756 #define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d)
1757 #define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c)
1758 #define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b)
1759 #define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a)
1760 #define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a)
1761 #define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c)
1762 #define IDirectInputDevice7_Escape(p,a) (p)->lpVtbl->Escape(p,a)
1763 #define IDirectInputDevice7_Poll(p) (p)->lpVtbl->Poll(p)
1764 #define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d)
1765 #define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d)
1766 #define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d)
1767 #else
1768 #define IDirectInputDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1769 #define IDirectInputDevice7_AddRef(p) (p)->AddRef()
1770 #define IDirectInputDevice7_Release(p) (p)->Release()
1771 #define IDirectInputDevice7_GetCapabilities(p,a) (p)->GetCapabilities(a)
1772 #define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
1773 #define IDirectInputDevice7_GetProperty(p,a,b) (p)->GetProperty(a,b)
1774 #define IDirectInputDevice7_SetProperty(p,a,b) (p)->SetProperty(a,b)
1775 #define IDirectInputDevice7_Acquire(p) (p)->Acquire()
1776 #define IDirectInputDevice7_Unacquire(p) (p)->Unacquire()
1777 #define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
1778 #define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
1779 #define IDirectInputDevice7_SetDataFormat(p,a) (p)->SetDataFormat(a)
1780 #define IDirectInputDevice7_SetEventNotification(p,a) (p)->SetEventNotification(a)
1781 #define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
1782 #define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
1783 #define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
1784 #define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
1785 #define IDirectInputDevice7_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
1786 #define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d)
1787 #define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c)
1788 #define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b)
1789 #define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a)
1790 #define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a)
1791 #define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c)
1792 #define IDirectInputDevice7_Escape(p,a) (p)->Escape(a)
1793 #define IDirectInputDevice7_Poll(p) (p)->Poll()
1794 #define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d)
1795 #define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d)
1796 #define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d)
1797 #endif
1799 #endif /* DIJ_RINGZERO */
1801 #endif /* DIRECTINPUT_VERSION >= 0x0700 */
1803 #if(DIRECTINPUT_VERSION >= 0x0800)
1805 #ifndef DIJ_RINGZERO
1807 #undef INTERFACE
1808 #define INTERFACE IDirectInputDevice8W
1810 DECLARE_INTERFACE_(IDirectInputDevice8W, IUnknown)
1812 /*** IUnknown methods ***/
1813 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1814 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1815 STDMETHOD_(ULONG,Release)(THIS) PURE;
1817 /*** IDirectInputDevice8W methods ***/
1818 STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE;
1819 STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE;
1820 STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE;
1821 STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE;
1822 STDMETHOD(Acquire)(THIS) PURE;
1823 STDMETHOD(Unacquire)(THIS) PURE;
1824 STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE;
1825 STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1826 STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE;
1827 STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE;
1828 STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE;
1829 STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE;
1830 STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE;
1831 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
1832 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE;
1833 STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE;
1834 STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW,LPVOID,DWORD) PURE;
1835 STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW,REFGUID) PURE;
1836 STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE;
1837 STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE;
1838 STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE;
1839 STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE;
1840 STDMETHOD(Poll)(THIS) PURE;
1841 STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1842 STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE;
1843 STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE;
1844 STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATW,LPCWSTR,DWORD) PURE;
1845 STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATW,LPCWSTR,DWORD) PURE;
1846 STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERW) PURE;
1849 typedef struct IDirectInputDevice8W *LPDIRECTINPUTDEVICE8W;
1851 #undef INTERFACE
1852 #define INTERFACE IDirectInputDevice8A
1854 DECLARE_INTERFACE_(IDirectInputDevice8A, IUnknown)
1856 /*** IUnknown methods ***/
1857 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1858 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1859 STDMETHOD_(ULONG,Release)(THIS) PURE;
1861 /*** IDirectInputDevice8A methods ***/
1862 STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE;
1863 STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE;
1864 STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE;
1865 STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE;
1866 STDMETHOD(Acquire)(THIS) PURE;
1867 STDMETHOD(Unacquire)(THIS) PURE;
1868 STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE;
1869 STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1870 STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE;
1871 STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE;
1872 STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE;
1873 STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE;
1874 STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE;
1875 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
1876 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE;
1877 STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE;
1878 STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA,LPVOID,DWORD) PURE;
1879 STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA,REFGUID) PURE;
1880 STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE;
1881 STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE;
1882 STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE;
1883 STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE;
1884 STDMETHOD(Poll)(THIS) PURE;
1885 STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE;
1886 STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE;
1887 STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE;
1888 STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATA,LPCSTR,DWORD) PURE;
1889 STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATA,LPCSTR,DWORD) PURE;
1890 STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERA) PURE;
1893 typedef struct IDirectInputDevice8A *LPDIRECTINPUTDEVICE8A;
1895 #ifdef UNICODE
1896 #define IID_IDirectInputDevice8 IID_IDirectInputDevice8W
1897 #define IDirectInputDevice8 IDirectInputDevice8W
1898 #define IDirectInputDevice8Vtbl IDirectInputDevice8WVtbl
1899 #else
1900 #define IID_IDirectInputDevice8 IID_IDirectInputDevice8A
1901 #define IDirectInputDevice8 IDirectInputDevice8A
1902 #define IDirectInputDevice8Vtbl IDirectInputDevice8AVtbl
1903 #endif
1904 typedef struct IDirectInputDevice8 *LPDIRECTINPUTDEVICE8;
1906 #if !defined(__cplusplus) || defined(CINTERFACE)
1907 #define IDirectInputDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1908 #define IDirectInputDevice8_AddRef(p) (p)->lpVtbl->AddRef(p)
1909 #define IDirectInputDevice8_Release(p) (p)->lpVtbl->Release(p)
1910 #define IDirectInputDevice8_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
1911 #define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
1912 #define IDirectInputDevice8_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
1913 #define IDirectInputDevice8_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
1914 #define IDirectInputDevice8_Acquire(p) (p)->lpVtbl->Acquire(p)
1915 #define IDirectInputDevice8_Unacquire(p) (p)->lpVtbl->Unacquire(p)
1916 #define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
1917 #define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
1918 #define IDirectInputDevice8_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
1919 #define IDirectInputDevice8_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
1920 #define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
1921 #define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
1922 #define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
1923 #define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
1924 #define IDirectInputDevice8_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
1925 #define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d)
1926 #define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c)
1927 #define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b)
1928 #define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a)
1929 #define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a)
1930 #define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c)
1931 #define IDirectInputDevice8_Escape(p,a) (p)->lpVtbl->Escape(p,a)
1932 #define IDirectInputDevice8_Poll(p) (p)->lpVtbl->Poll(p)
1933 #define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d)
1934 #define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d)
1935 #define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d)
1936 #define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->lpVtbl->BuildActionMap(p,a,b,c)
1937 #define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->lpVtbl->SetActionMap(p,a,b,c)
1938 #define IDirectInputDevice8_GetImageInfo(p,a) (p)->lpVtbl->GetImageInfo(p,a)
1939 #else
1940 #define IDirectInputDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1941 #define IDirectInputDevice8_AddRef(p) (p)->AddRef()
1942 #define IDirectInputDevice8_Release(p) (p)->Release()
1943 #define IDirectInputDevice8_GetCapabilities(p,a) (p)->GetCapabilities(a)
1944 #define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
1945 #define IDirectInputDevice8_GetProperty(p,a,b) (p)->GetProperty(a,b)
1946 #define IDirectInputDevice8_SetProperty(p,a,b) (p)->SetProperty(a,b)
1947 #define IDirectInputDevice8_Acquire(p) (p)->Acquire()
1948 #define IDirectInputDevice8_Unacquire(p) (p)->Unacquire()
1949 #define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
1950 #define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
1951 #define IDirectInputDevice8_SetDataFormat(p,a) (p)->SetDataFormat(a)
1952 #define IDirectInputDevice8_SetEventNotification(p,a) (p)->SetEventNotification(a)
1953 #define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
1954 #define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
1955 #define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
1956 #define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
1957 #define IDirectInputDevice8_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
1958 #define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d)
1959 #define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c)
1960 #define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b)
1961 #define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a)
1962 #define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a)
1963 #define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c)
1964 #define IDirectInputDevice8_Escape(p,a) (p)->Escape(a)
1965 #define IDirectInputDevice8_Poll(p) (p)->Poll()
1966 #define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d)
1967 #define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d)
1968 #define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d)
1969 #define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->BuildActionMap(a,b,c)
1970 #define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->SetActionMap(a,b,c)
1971 #define IDirectInputDevice8_GetImageInfo(p,a) (p)->GetImageInfo(a)
1972 #endif
1974 #endif /* DIJ_RINGZERO */
1976 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
1978 /****************************************************************************
1980 * Mouse
1982 ****************************************************************************/
1984 #ifndef DIJ_RINGZERO
1986 typedef struct _DIMOUSESTATE {
1987 LONG lX;
1988 LONG lY;
1989 LONG lZ;
1990 BYTE rgbButtons[4];
1991 } DIMOUSESTATE, *LPDIMOUSESTATE;
1993 #if DIRECTINPUT_VERSION >= 0x0700
1994 typedef struct _DIMOUSESTATE2 {
1995 LONG lX;
1996 LONG lY;
1997 LONG lZ;
1998 BYTE rgbButtons[8];
1999 } DIMOUSESTATE2, *LPDIMOUSESTATE2;
2000 #endif
2003 #define DIMOFS_X FIELD_OFFSET(DIMOUSESTATE, lX)
2004 #define DIMOFS_Y FIELD_OFFSET(DIMOUSESTATE, lY)
2005 #define DIMOFS_Z FIELD_OFFSET(DIMOUSESTATE, lZ)
2006 #define DIMOFS_BUTTON0 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 0)
2007 #define DIMOFS_BUTTON1 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 1)
2008 #define DIMOFS_BUTTON2 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 2)
2009 #define DIMOFS_BUTTON3 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 3)
2010 #if (DIRECTINPUT_VERSION >= 0x0700)
2011 #define DIMOFS_BUTTON4 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 4)
2012 #define DIMOFS_BUTTON5 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 5)
2013 #define DIMOFS_BUTTON6 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 6)
2014 #define DIMOFS_BUTTON7 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 7)
2015 #endif
2016 #endif /* DIJ_RINGZERO */
2018 /****************************************************************************
2020 * Keyboard
2022 ****************************************************************************/
2024 #ifndef DIJ_RINGZERO
2026 /****************************************************************************
2028 * DirectInput keyboard scan codes
2030 ****************************************************************************/
2031 #define DIK_ESCAPE 0x01
2032 #define DIK_1 0x02
2033 #define DIK_2 0x03
2034 #define DIK_3 0x04
2035 #define DIK_4 0x05
2036 #define DIK_5 0x06
2037 #define DIK_6 0x07
2038 #define DIK_7 0x08
2039 #define DIK_8 0x09
2040 #define DIK_9 0x0A
2041 #define DIK_0 0x0B
2042 #define DIK_MINUS 0x0C /* - on main keyboard */
2043 #define DIK_EQUALS 0x0D
2044 #define DIK_BACK 0x0E /* backspace */
2045 #define DIK_TAB 0x0F
2046 #define DIK_Q 0x10
2047 #define DIK_W 0x11
2048 #define DIK_E 0x12
2049 #define DIK_R 0x13
2050 #define DIK_T 0x14
2051 #define DIK_Y 0x15
2052 #define DIK_U 0x16
2053 #define DIK_I 0x17
2054 #define DIK_O 0x18
2055 #define DIK_P 0x19
2056 #define DIK_LBRACKET 0x1A
2057 #define DIK_RBRACKET 0x1B
2058 #define DIK_RETURN 0x1C /* Enter on main keyboard */
2059 #define DIK_LCONTROL 0x1D
2060 #define DIK_A 0x1E
2061 #define DIK_S 0x1F
2062 #define DIK_D 0x20
2063 #define DIK_F 0x21
2064 #define DIK_G 0x22
2065 #define DIK_H 0x23
2066 #define DIK_J 0x24
2067 #define DIK_K 0x25
2068 #define DIK_L 0x26
2069 #define DIK_SEMICOLON 0x27
2070 #define DIK_APOSTROPHE 0x28
2071 #define DIK_GRAVE 0x29 /* accent grave */
2072 #define DIK_LSHIFT 0x2A
2073 #define DIK_BACKSLASH 0x2B
2074 #define DIK_Z 0x2C
2075 #define DIK_X 0x2D
2076 #define DIK_C 0x2E
2077 #define DIK_V 0x2F
2078 #define DIK_B 0x30
2079 #define DIK_N 0x31
2080 #define DIK_M 0x32
2081 #define DIK_COMMA 0x33
2082 #define DIK_PERIOD 0x34 /* . on main keyboard */
2083 #define DIK_SLASH 0x35 /* / on main keyboard */
2084 #define DIK_RSHIFT 0x36
2085 #define DIK_MULTIPLY 0x37 /* * on numeric keypad */
2086 #define DIK_LMENU 0x38 /* left Alt */
2087 #define DIK_SPACE 0x39
2088 #define DIK_CAPITAL 0x3A
2089 #define DIK_F1 0x3B
2090 #define DIK_F2 0x3C
2091 #define DIK_F3 0x3D
2092 #define DIK_F4 0x3E
2093 #define DIK_F5 0x3F
2094 #define DIK_F6 0x40
2095 #define DIK_F7 0x41
2096 #define DIK_F8 0x42
2097 #define DIK_F9 0x43
2098 #define DIK_F10 0x44
2099 #define DIK_NUMLOCK 0x45
2100 #define DIK_SCROLL 0x46 /* Scroll Lock */
2101 #define DIK_NUMPAD7 0x47
2102 #define DIK_NUMPAD8 0x48
2103 #define DIK_NUMPAD9 0x49
2104 #define DIK_SUBTRACT 0x4A /* - on numeric keypad */
2105 #define DIK_NUMPAD4 0x4B
2106 #define DIK_NUMPAD5 0x4C
2107 #define DIK_NUMPAD6 0x4D
2108 #define DIK_ADD 0x4E /* + on numeric keypad */
2109 #define DIK_NUMPAD1 0x4F
2110 #define DIK_NUMPAD2 0x50
2111 #define DIK_NUMPAD3 0x51
2112 #define DIK_NUMPAD0 0x52
2113 #define DIK_DECIMAL 0x53 /* . on numeric keypad */
2114 #define DIK_OEM_102 0x56 /* <> or \| on RT 102-key keyboard (Non-U.S.) */
2115 #define DIK_F11 0x57
2116 #define DIK_F12 0x58
2117 #define DIK_F13 0x64 /* (NEC PC98) */
2118 #define DIK_F14 0x65 /* (NEC PC98) */
2119 #define DIK_F15 0x66 /* (NEC PC98) */
2120 #define DIK_KANA 0x70 /* (Japanese keyboard) */
2121 #define DIK_ABNT_C1 0x73 /* /? on Brazilian keyboard */
2122 #define DIK_CONVERT 0x79 /* (Japanese keyboard) */
2123 #define DIK_NOCONVERT 0x7B /* (Japanese keyboard) */
2124 #define DIK_YEN 0x7D /* (Japanese keyboard) */
2125 #define DIK_ABNT_C2 0x7E /* Numpad . on Brazilian keyboard */
2126 #define DIK_NUMPADEQUALS 0x8D /* = on numeric keypad (NEC PC98) */
2127 #define DIK_PREVTRACK 0x90 /* Previous Track (DIK_CIRCUMFLEX on Japanese keyboard) */
2128 #define DIK_AT 0x91 /* (NEC PC98) */
2129 #define DIK_COLON 0x92 /* (NEC PC98) */
2130 #define DIK_UNDERLINE 0x93 /* (NEC PC98) */
2131 #define DIK_KANJI 0x94 /* (Japanese keyboard) */
2132 #define DIK_STOP 0x95 /* (NEC PC98) */
2133 #define DIK_AX 0x96 /* (Japan AX) */
2134 #define DIK_UNLABELED 0x97 /* (J3100) */
2135 #define DIK_NEXTTRACK 0x99 /* Next Track */
2136 #define DIK_NUMPADENTER 0x9C /* Enter on numeric keypad */
2137 #define DIK_RCONTROL 0x9D
2138 #define DIK_MUTE 0xA0 /* Mute */
2139 #define DIK_CALCULATOR 0xA1 /* Calculator */
2140 #define DIK_PLAYPAUSE 0xA2 /* Play / Pause */
2141 #define DIK_MEDIASTOP 0xA4 /* Media Stop */
2142 #define DIK_VOLUMEDOWN 0xAE /* Volume - */
2143 #define DIK_VOLUMEUP 0xB0 /* Volume + */
2144 #define DIK_WEBHOME 0xB2 /* Web home */
2145 #define DIK_NUMPADCOMMA 0xB3 /* , on numeric keypad (NEC PC98) */
2146 #define DIK_DIVIDE 0xB5 /* / on numeric keypad */
2147 #define DIK_SYSRQ 0xB7
2148 #define DIK_RMENU 0xB8 /* right Alt */
2149 #define DIK_PAUSE 0xC5 /* Pause */
2150 #define DIK_HOME 0xC7 /* Home on arrow keypad */
2151 #define DIK_UP 0xC8 /* UpArrow on arrow keypad */
2152 #define DIK_PRIOR 0xC9 /* PgUp on arrow keypad */
2153 #define DIK_LEFT 0xCB /* LeftArrow on arrow keypad */
2154 #define DIK_RIGHT 0xCD /* RightArrow on arrow keypad */
2155 #define DIK_END 0xCF /* End on arrow keypad */
2156 #define DIK_DOWN 0xD0 /* DownArrow on arrow keypad */
2157 #define DIK_NEXT 0xD1 /* PgDn on arrow keypad */
2158 #define DIK_INSERT 0xD2 /* Insert on arrow keypad */
2159 #define DIK_DELETE 0xD3 /* Delete on arrow keypad */
2160 #define DIK_LWIN 0xDB /* Left Windows key */
2161 #define DIK_RWIN 0xDC /* Right Windows key */
2162 #define DIK_APPS 0xDD /* AppMenu key */
2163 #define DIK_POWER 0xDE /* System Power */
2164 #define DIK_SLEEP 0xDF /* System Sleep */
2165 #define DIK_WAKE 0xE3 /* System Wake */
2166 #define DIK_WEBSEARCH 0xE5 /* Web Search */
2167 #define DIK_WEBFAVORITES 0xE6 /* Web Favorites */
2168 #define DIK_WEBREFRESH 0xE7 /* Web Refresh */
2169 #define DIK_WEBSTOP 0xE8 /* Web Stop */
2170 #define DIK_WEBFORWARD 0xE9 /* Web Forward */
2171 #define DIK_WEBBACK 0xEA /* Web Back */
2172 #define DIK_MYCOMPUTER 0xEB /* My Computer */
2173 #define DIK_MAIL 0xEC /* Mail */
2174 #define DIK_MEDIASELECT 0xED /* Media Select */
2177 * Alternate names for keys, to facilitate transition from DOS.
2179 #define DIK_BACKSPACE DIK_BACK /* backspace */
2180 #define DIK_NUMPADSTAR DIK_MULTIPLY /* * on numeric keypad */
2181 #define DIK_LALT DIK_LMENU /* left Alt */
2182 #define DIK_CAPSLOCK DIK_CAPITAL /* CapsLock */
2183 #define DIK_NUMPADMINUS DIK_SUBTRACT /* - on numeric keypad */
2184 #define DIK_NUMPADPLUS DIK_ADD /* + on numeric keypad */
2185 #define DIK_NUMPADPERIOD DIK_DECIMAL /* . on numeric keypad */
2186 #define DIK_NUMPADSLASH DIK_DIVIDE /* / on numeric keypad */
2187 #define DIK_RALT DIK_RMENU /* right Alt */
2188 #define DIK_UPARROW DIK_UP /* UpArrow on arrow keypad */
2189 #define DIK_PGUP DIK_PRIOR /* PgUp on arrow keypad */
2190 #define DIK_LEFTARROW DIK_LEFT /* LeftArrow on arrow keypad */
2191 #define DIK_RIGHTARROW DIK_RIGHT /* RightArrow on arrow keypad */
2192 #define DIK_DOWNARROW DIK_DOWN /* DownArrow on arrow keypad */
2193 #define DIK_PGDN DIK_NEXT /* PgDn on arrow keypad */
2196 * Alternate names for keys originally not used on US keyboards.
2198 #define DIK_CIRCUMFLEX DIK_PREVTRACK /* Japanese keyboard */
2200 #endif /* DIJ_RINGZERO */
2202 /****************************************************************************
2204 * Joystick
2206 ****************************************************************************/
2208 #ifndef DIJ_RINGZERO
2210 typedef struct DIJOYSTATE {
2211 LONG lX; /* x-axis position */
2212 LONG lY; /* y-axis position */
2213 LONG lZ; /* z-axis position */
2214 LONG lRx; /* x-axis rotation */
2215 LONG lRy; /* y-axis rotation */
2216 LONG lRz; /* z-axis rotation */
2217 LONG rglSlider[2]; /* extra axes positions */
2218 DWORD rgdwPOV[4]; /* POV directions */
2219 BYTE rgbButtons[32]; /* 32 buttons */
2220 } DIJOYSTATE, *LPDIJOYSTATE;
2222 typedef struct DIJOYSTATE2 {
2223 LONG lX; /* x-axis position */
2224 LONG lY; /* y-axis position */
2225 LONG lZ; /* z-axis position */
2226 LONG lRx; /* x-axis rotation */
2227 LONG lRy; /* y-axis rotation */
2228 LONG lRz; /* z-axis rotation */
2229 LONG rglSlider[2]; /* extra axes positions */
2230 DWORD rgdwPOV[4]; /* POV directions */
2231 BYTE rgbButtons[128]; /* 128 buttons */
2232 LONG lVX; /* x-axis velocity */
2233 LONG lVY; /* y-axis velocity */
2234 LONG lVZ; /* z-axis velocity */
2235 LONG lVRx; /* x-axis angular velocity */
2236 LONG lVRy; /* y-axis angular velocity */
2237 LONG lVRz; /* z-axis angular velocity */
2238 LONG rglVSlider[2]; /* extra axes velocities */
2239 LONG lAX; /* x-axis acceleration */
2240 LONG lAY; /* y-axis acceleration */
2241 LONG lAZ; /* z-axis acceleration */
2242 LONG lARx; /* x-axis angular acceleration */
2243 LONG lARy; /* y-axis angular acceleration */
2244 LONG lARz; /* z-axis angular acceleration */
2245 LONG rglASlider[2]; /* extra axes accelerations */
2246 LONG lFX; /* x-axis force */
2247 LONG lFY; /* y-axis force */
2248 LONG lFZ; /* z-axis force */
2249 LONG lFRx; /* x-axis torque */
2250 LONG lFRy; /* y-axis torque */
2251 LONG lFRz; /* z-axis torque */
2252 LONG rglFSlider[2]; /* extra axes forces */
2253 } DIJOYSTATE2, *LPDIJOYSTATE2;
2255 #define DIJOFS_X FIELD_OFFSET(DIJOYSTATE, lX)
2256 #define DIJOFS_Y FIELD_OFFSET(DIJOYSTATE, lY)
2257 #define DIJOFS_Z FIELD_OFFSET(DIJOYSTATE, lZ)
2258 #define DIJOFS_RX FIELD_OFFSET(DIJOYSTATE, lRx)
2259 #define DIJOFS_RY FIELD_OFFSET(DIJOYSTATE, lRy)
2260 #define DIJOFS_RZ FIELD_OFFSET(DIJOYSTATE, lRz)
2261 #define DIJOFS_SLIDER(n) (FIELD_OFFSET(DIJOYSTATE, rglSlider) + \
2262 (n) * sizeof(LONG))
2263 #define DIJOFS_POV(n) (FIELD_OFFSET(DIJOYSTATE, rgdwPOV) + \
2264 (n) * sizeof(DWORD))
2265 #define DIJOFS_BUTTON(n) (FIELD_OFFSET(DIJOYSTATE, rgbButtons) + (n))
2266 #define DIJOFS_BUTTON0 DIJOFS_BUTTON(0)
2267 #define DIJOFS_BUTTON1 DIJOFS_BUTTON(1)
2268 #define DIJOFS_BUTTON2 DIJOFS_BUTTON(2)
2269 #define DIJOFS_BUTTON3 DIJOFS_BUTTON(3)
2270 #define DIJOFS_BUTTON4 DIJOFS_BUTTON(4)
2271 #define DIJOFS_BUTTON5 DIJOFS_BUTTON(5)
2272 #define DIJOFS_BUTTON6 DIJOFS_BUTTON(6)
2273 #define DIJOFS_BUTTON7 DIJOFS_BUTTON(7)
2274 #define DIJOFS_BUTTON8 DIJOFS_BUTTON(8)
2275 #define DIJOFS_BUTTON9 DIJOFS_BUTTON(9)
2276 #define DIJOFS_BUTTON10 DIJOFS_BUTTON(10)
2277 #define DIJOFS_BUTTON11 DIJOFS_BUTTON(11)
2278 #define DIJOFS_BUTTON12 DIJOFS_BUTTON(12)
2279 #define DIJOFS_BUTTON13 DIJOFS_BUTTON(13)
2280 #define DIJOFS_BUTTON14 DIJOFS_BUTTON(14)
2281 #define DIJOFS_BUTTON15 DIJOFS_BUTTON(15)
2282 #define DIJOFS_BUTTON16 DIJOFS_BUTTON(16)
2283 #define DIJOFS_BUTTON17 DIJOFS_BUTTON(17)
2284 #define DIJOFS_BUTTON18 DIJOFS_BUTTON(18)
2285 #define DIJOFS_BUTTON19 DIJOFS_BUTTON(19)
2286 #define DIJOFS_BUTTON20 DIJOFS_BUTTON(20)
2287 #define DIJOFS_BUTTON21 DIJOFS_BUTTON(21)
2288 #define DIJOFS_BUTTON22 DIJOFS_BUTTON(22)
2289 #define DIJOFS_BUTTON23 DIJOFS_BUTTON(23)
2290 #define DIJOFS_BUTTON24 DIJOFS_BUTTON(24)
2291 #define DIJOFS_BUTTON25 DIJOFS_BUTTON(25)
2292 #define DIJOFS_BUTTON26 DIJOFS_BUTTON(26)
2293 #define DIJOFS_BUTTON27 DIJOFS_BUTTON(27)
2294 #define DIJOFS_BUTTON28 DIJOFS_BUTTON(28)
2295 #define DIJOFS_BUTTON29 DIJOFS_BUTTON(29)
2296 #define DIJOFS_BUTTON30 DIJOFS_BUTTON(30)
2297 #define DIJOFS_BUTTON31 DIJOFS_BUTTON(31)
2300 #endif /* DIJ_RINGZERO */
2302 /****************************************************************************
2304 * IDirectInput
2306 ****************************************************************************/
2308 #ifndef DIJ_RINGZERO
2310 #define DIENUM_STOP 0
2311 #define DIENUM_CONTINUE 1
2313 typedef BOOL (FAR PASCAL * LPDIENUMDEVICESCALLBACKA)(LPCDIDEVICEINSTANCEA, LPVOID);
2314 typedef BOOL (FAR PASCAL * LPDIENUMDEVICESCALLBACKW)(LPCDIDEVICEINSTANCEW, LPVOID);
2315 #ifdef UNICODE
2316 #define LPDIENUMDEVICESCALLBACK LPDIENUMDEVICESCALLBACKW
2317 #else
2318 #define LPDIENUMDEVICESCALLBACK LPDIENUMDEVICESCALLBACKA
2319 #endif // !UNICODE
2320 typedef BOOL (FAR PASCAL * LPDICONFIGUREDEVICESCALLBACK)(IUnknown FAR *, LPVOID);
2322 #define DIEDFL_ALLDEVICES 0x00000000
2323 #define DIEDFL_ATTACHEDONLY 0x00000001
2324 #if(DIRECTINPUT_VERSION >= 0x0500)
2325 #define DIEDFL_FORCEFEEDBACK 0x00000100
2326 #endif /* DIRECTINPUT_VERSION >= 0x0500 */
2327 #if(DIRECTINPUT_VERSION >= 0x050a)
2328 #define DIEDFL_INCLUDEALIASES 0x00010000
2329 #define DIEDFL_INCLUDEPHANTOMS 0x00020000
2330 #endif /* DIRECTINPUT_VERSION >= 0x050a */
2331 #if(DIRECTINPUT_VERSION >= 0x0800)
2332 #define DIEDFL_INCLUDEHIDDEN 0x00040000
2333 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
2336 #if(DIRECTINPUT_VERSION >= 0x0800)
2337 typedef BOOL (FAR PASCAL * LPDIENUMDEVICESBYSEMANTICSCBA)(LPCDIDEVICEINSTANCEA, LPDIRECTINPUTDEVICE8A, DWORD, DWORD, LPVOID);
2338 typedef BOOL (FAR PASCAL * LPDIENUMDEVICESBYSEMANTICSCBW)(LPCDIDEVICEINSTANCEW, LPDIRECTINPUTDEVICE8W, DWORD, DWORD, LPVOID);
2339 #ifdef UNICODE
2340 #define LPDIENUMDEVICESBYSEMANTICSCB LPDIENUMDEVICESBYSEMANTICSCBW
2341 #else
2342 #define LPDIENUMDEVICESBYSEMANTICSCB LPDIENUMDEVICESBYSEMANTICSCBA
2343 #endif // !UNICODE
2344 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
2346 #if(DIRECTINPUT_VERSION >= 0x0800)
2347 #define DIEDBS_MAPPEDPRI1 0x00000001
2348 #define DIEDBS_MAPPEDPRI2 0x00000002
2349 #define DIEDBS_RECENTDEVICE 0x00000010
2350 #define DIEDBS_NEWDEVICE 0x00000020
2351 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
2353 #if(DIRECTINPUT_VERSION >= 0x0800)
2354 #define DIEDBSFL_ATTACHEDONLY 0x00000000
2355 #define DIEDBSFL_THISUSER 0x00000010
2356 #define DIEDBSFL_FORCEFEEDBACK DIEDFL_FORCEFEEDBACK
2357 #define DIEDBSFL_AVAILABLEDEVICES 0x00001000
2358 #define DIEDBSFL_MULTIMICEKEYBOARDS 0x00002000
2359 #define DIEDBSFL_NONGAMINGDEVICES 0x00004000
2360 #define DIEDBSFL_VALID 0x00007110
2361 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
2363 #undef INTERFACE
2364 #define INTERFACE IDirectInputW
2366 DECLARE_INTERFACE_(IDirectInputW, IUnknown)
2368 /*** IUnknown methods ***/
2369 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2370 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
2371 STDMETHOD_(ULONG,Release)(THIS) PURE;
2373 /*** IDirectInputW methods ***/
2374 STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEW *,LPUNKNOWN) PURE;
2375 STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE;
2376 STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE;
2377 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
2378 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE;
2381 typedef struct IDirectInputW *LPDIRECTINPUTW;
2383 #undef INTERFACE
2384 #define INTERFACE IDirectInputA
2386 DECLARE_INTERFACE_(IDirectInputA, IUnknown)
2388 /*** IUnknown methods ***/
2389 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2390 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
2391 STDMETHOD_(ULONG,Release)(THIS) PURE;
2393 /*** IDirectInputA methods ***/
2394 STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEA *,LPUNKNOWN) PURE;
2395 STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE;
2396 STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE;
2397 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
2398 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE;
2401 typedef struct IDirectInputA *LPDIRECTINPUTA;
2403 #ifdef UNICODE
2404 #define IID_IDirectInput IID_IDirectInputW
2405 #define IDirectInput IDirectInputW
2406 #define IDirectInputVtbl IDirectInputWVtbl
2407 #else
2408 #define IID_IDirectInput IID_IDirectInputA
2409 #define IDirectInput IDirectInputA
2410 #define IDirectInputVtbl IDirectInputAVtbl
2411 #endif
2412 typedef struct IDirectInput *LPDIRECTINPUT;
2414 #if !defined(__cplusplus) || defined(CINTERFACE)
2415 #define IDirectInput_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2416 #define IDirectInput_AddRef(p) (p)->lpVtbl->AddRef(p)
2417 #define IDirectInput_Release(p) (p)->lpVtbl->Release(p)
2418 #define IDirectInput_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
2419 #define IDirectInput_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
2420 #define IDirectInput_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
2421 #define IDirectInput_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
2422 #define IDirectInput_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2423 #else
2424 #define IDirectInput_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2425 #define IDirectInput_AddRef(p) (p)->AddRef()
2426 #define IDirectInput_Release(p) (p)->Release()
2427 #define IDirectInput_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
2428 #define IDirectInput_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
2429 #define IDirectInput_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
2430 #define IDirectInput_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
2431 #define IDirectInput_Initialize(p,a,b) (p)->Initialize(a,b)
2432 #endif
2434 #undef INTERFACE
2435 #define INTERFACE IDirectInput2W
2437 DECLARE_INTERFACE_(IDirectInput2W, IDirectInputW)
2439 /*** IUnknown methods ***/
2440 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2441 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
2442 STDMETHOD_(ULONG,Release)(THIS) PURE;
2444 /*** IDirectInputW methods ***/
2445 STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEW *,LPUNKNOWN) PURE;
2446 STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE;
2447 STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE;
2448 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
2449 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE;
2451 /*** IDirectInput2W methods ***/
2452 STDMETHOD(FindDevice)(THIS_ REFGUID,LPCWSTR,LPGUID) PURE;
2455 typedef struct IDirectInput2W *LPDIRECTINPUT2W;
2457 #undef INTERFACE
2458 #define INTERFACE IDirectInput2A
2460 DECLARE_INTERFACE_(IDirectInput2A, IDirectInputA)
2462 /*** IUnknown methods ***/
2463 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2464 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
2465 STDMETHOD_(ULONG,Release)(THIS) PURE;
2467 /*** IDirectInputA methods ***/
2468 STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEA *,LPUNKNOWN) PURE;
2469 STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE;
2470 STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE;
2471 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
2472 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE;
2474 /*** IDirectInput2A methods ***/
2475 STDMETHOD(FindDevice)(THIS_ REFGUID,LPCSTR,LPGUID) PURE;
2478 typedef struct IDirectInput2A *LPDIRECTINPUT2A;
2480 #ifdef UNICODE
2481 #define IID_IDirectInput2 IID_IDirectInput2W
2482 #define IDirectInput2 IDirectInput2W
2483 #define IDirectInput2Vtbl IDirectInput2WVtbl
2484 #else
2485 #define IID_IDirectInput2 IID_IDirectInput2A
2486 #define IDirectInput2 IDirectInput2A
2487 #define IDirectInput2Vtbl IDirectInput2AVtbl
2488 #endif
2489 typedef struct IDirectInput2 *LPDIRECTINPUT2;
2491 #if !defined(__cplusplus) || defined(CINTERFACE)
2492 #define IDirectInput2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2493 #define IDirectInput2_AddRef(p) (p)->lpVtbl->AddRef(p)
2494 #define IDirectInput2_Release(p) (p)->lpVtbl->Release(p)
2495 #define IDirectInput2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
2496 #define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
2497 #define IDirectInput2_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
2498 #define IDirectInput2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
2499 #define IDirectInput2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2500 #define IDirectInput2_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c)
2501 #else
2502 #define IDirectInput2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2503 #define IDirectInput2_AddRef(p) (p)->AddRef()
2504 #define IDirectInput2_Release(p) (p)->Release()
2505 #define IDirectInput2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
2506 #define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
2507 #define IDirectInput2_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
2508 #define IDirectInput2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
2509 #define IDirectInput2_Initialize(p,a,b) (p)->Initialize(a,b)
2510 #define IDirectInput2_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c)
2511 #endif
2514 #undef INTERFACE
2515 #define INTERFACE IDirectInput7W
2517 DECLARE_INTERFACE_(IDirectInput7W, IDirectInput2W)
2519 /*** IUnknown methods ***/
2520 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2521 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
2522 STDMETHOD_(ULONG,Release)(THIS) PURE;
2524 /*** IDirectInput2W methods ***/
2525 STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEW *,LPUNKNOWN) PURE;
2526 STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE;
2527 STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE;
2528 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
2529 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE;
2530 STDMETHOD(FindDevice)(THIS_ REFGUID,LPCWSTR,LPGUID) PURE;
2532 /*** IDirectInput7W methods ***/
2533 STDMETHOD(CreateDeviceEx)(THIS_ REFGUID,REFIID,LPVOID *,LPUNKNOWN) PURE;
2536 typedef struct IDirectInput7W *LPDIRECTINPUT7W;
2538 #undef INTERFACE
2539 #define INTERFACE IDirectInput7A
2541 DECLARE_INTERFACE_(IDirectInput7A, IDirectInput2A)
2543 /*** IUnknown methods ***/
2544 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2545 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
2546 STDMETHOD_(ULONG,Release)(THIS) PURE;
2548 /*** IDirectInput2A methods ***/
2549 STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEA *,LPUNKNOWN) PURE;
2550 STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE;
2551 STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE;
2552 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
2553 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE;
2554 STDMETHOD(FindDevice)(THIS_ REFGUID,LPCSTR,LPGUID) PURE;
2556 /*** IDirectInput7A methods ***/
2557 STDMETHOD(CreateDeviceEx)(THIS_ REFGUID,REFIID,LPVOID *,LPUNKNOWN) PURE;
2560 typedef struct IDirectInput7A *LPDIRECTINPUT7A;
2562 #ifdef UNICODE
2563 #define IID_IDirectInput7 IID_IDirectInput7W
2564 #define IDirectInput7 IDirectInput7W
2565 #define IDirectInput7Vtbl IDirectInput7WVtbl
2566 #else
2567 #define IID_IDirectInput7 IID_IDirectInput7A
2568 #define IDirectInput7 IDirectInput7A
2569 #define IDirectInput7Vtbl IDirectInput7AVtbl
2570 #endif
2571 typedef struct IDirectInput7 *LPDIRECTINPUT7;
2573 #if !defined(__cplusplus) || defined(CINTERFACE)
2574 #define IDirectInput7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2575 #define IDirectInput7_AddRef(p) (p)->lpVtbl->AddRef(p)
2576 #define IDirectInput7_Release(p) (p)->lpVtbl->Release(p)
2577 #define IDirectInput7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
2578 #define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
2579 #define IDirectInput7_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
2580 #define IDirectInput7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
2581 #define IDirectInput7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2582 #define IDirectInput7_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c)
2583 #define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->lpVtbl->CreateDeviceEx(p,a,b,c,d)
2584 #else
2585 #define IDirectInput7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2586 #define IDirectInput7_AddRef(p) (p)->AddRef()
2587 #define IDirectInput7_Release(p) (p)->Release()
2588 #define IDirectInput7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
2589 #define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
2590 #define IDirectInput7_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
2591 #define IDirectInput7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
2592 #define IDirectInput7_Initialize(p,a,b) (p)->Initialize(a,b)
2593 #define IDirectInput7_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c)
2594 #define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->CreateDeviceEx(a,b,c,d)
2595 #endif
2597 #if(DIRECTINPUT_VERSION >= 0x0800)
2598 #undef INTERFACE
2599 #define INTERFACE IDirectInput8W
2601 DECLARE_INTERFACE_(IDirectInput8W, IUnknown)
2603 /*** IUnknown methods ***/
2604 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2605 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
2606 STDMETHOD_(ULONG,Release)(THIS) PURE;
2608 /*** IDirectInput8W methods ***/
2609 STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICE8W *,LPUNKNOWN) PURE;
2610 STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE;
2611 STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE;
2612 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
2613 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE;
2614 STDMETHOD(FindDevice)(THIS_ REFGUID,LPCWSTR,LPGUID) PURE;
2615 STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCWSTR,LPDIACTIONFORMATW,LPDIENUMDEVICESBYSEMANTICSCBW,LPVOID,DWORD) PURE;
2616 STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK,LPDICONFIGUREDEVICESPARAMSW,DWORD,LPVOID) PURE;
2619 typedef struct IDirectInput8W *LPDIRECTINPUT8W;
2621 #undef INTERFACE
2622 #define INTERFACE IDirectInput8A
2624 DECLARE_INTERFACE_(IDirectInput8A, IUnknown)
2626 /*** IUnknown methods ***/
2627 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
2628 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
2629 STDMETHOD_(ULONG,Release)(THIS) PURE;
2631 /*** IDirectInput8A methods ***/
2632 STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICE8A *,LPUNKNOWN) PURE;
2633 STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE;
2634 STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE;
2635 STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE;
2636 STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE;
2637 STDMETHOD(FindDevice)(THIS_ REFGUID,LPCSTR,LPGUID) PURE;
2638 STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCSTR,LPDIACTIONFORMATA,LPDIENUMDEVICESBYSEMANTICSCBA,LPVOID,DWORD) PURE;
2639 STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK,LPDICONFIGUREDEVICESPARAMSA,DWORD,LPVOID) PURE;
2642 typedef struct IDirectInput8A *LPDIRECTINPUT8A;
2644 #ifdef UNICODE
2645 #define IID_IDirectInput8 IID_IDirectInput8W
2646 #define IDirectInput8 IDirectInput8W
2647 #define IDirectInput8Vtbl IDirectInput8WVtbl
2648 #else
2649 #define IID_IDirectInput8 IID_IDirectInput8A
2650 #define IDirectInput8 IDirectInput8A
2651 #define IDirectInput8Vtbl IDirectInput8AVtbl
2652 #endif
2653 typedef struct IDirectInput8 *LPDIRECTINPUT8;
2655 #if !defined(__cplusplus) || defined(CINTERFACE)
2656 #define IDirectInput8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2657 #define IDirectInput8_AddRef(p) (p)->lpVtbl->AddRef(p)
2658 #define IDirectInput8_Release(p) (p)->lpVtbl->Release(p)
2659 #define IDirectInput8_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
2660 #define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
2661 #define IDirectInput8_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
2662 #define IDirectInput8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
2663 #define IDirectInput8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
2664 #define IDirectInput8_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c)
2665 #define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->lpVtbl->EnumDevicesBySemantics(p,a,b,c,d,e)
2666 #define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->lpVtbl->ConfigureDevices(p,a,b,c,d)
2667 #else
2668 #define IDirectInput8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2669 #define IDirectInput8_AddRef(p) (p)->AddRef()
2670 #define IDirectInput8_Release(p) (p)->Release()
2671 #define IDirectInput8_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
2672 #define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
2673 #define IDirectInput8_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
2674 #define IDirectInput8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
2675 #define IDirectInput8_Initialize(p,a,b) (p)->Initialize(a,b)
2676 #define IDirectInput8_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c)
2677 #define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->EnumDevicesBySemantics(a,b,c,d,e)
2678 #define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->ConfigureDevices(a,b,c,d)
2679 #endif
2680 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
2682 #if DIRECTINPUT_VERSION > 0x0700
2684 extern HRESULT WINAPI DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPVOID *ppvOut, LPUNKNOWN punkOuter);
2686 #else
2687 extern HRESULT WINAPI DirectInputCreateA(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTA *ppDI, LPUNKNOWN punkOuter);
2688 extern HRESULT WINAPI DirectInputCreateW(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTW *ppDI, LPUNKNOWN punkOuter);
2689 #ifdef UNICODE
2690 #define DirectInputCreate DirectInputCreateW
2691 #else
2692 #define DirectInputCreate DirectInputCreateA
2693 #endif // !UNICODE
2695 extern HRESULT WINAPI DirectInputCreateEx(HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPVOID *ppvOut, LPUNKNOWN punkOuter);
2697 #endif /* DIRECTINPUT_VERSION > 0x700 */
2699 #endif /* DIJ_RINGZERO */
2702 /****************************************************************************
2704 * Return Codes
2706 ****************************************************************************/
2709 * The operation completed successfully.
2711 #define DI_OK S_OK
2714 * The device exists but is not currently attached.
2716 #define DI_NOTATTACHED S_FALSE
2719 * The device buffer overflowed. Some input was lost.
2721 #define DI_BUFFEROVERFLOW S_FALSE
2724 * The change in device properties had no effect.
2726 #define DI_PROPNOEFFECT S_FALSE
2729 * The operation had no effect.
2731 #define DI_NOEFFECT S_FALSE
2734 * The device is a polled device. As a result, device buffering
2735 * will not collect any data and event notifications will not be
2736 * signalled until GetDeviceState is called.
2738 #define DI_POLLEDDEVICE ((HRESULT)0x00000002L)
2741 * The parameters of the effect were successfully updated by
2742 * IDirectInputEffect::SetParameters, but the effect was not
2743 * downloaded because the device is not exclusively acquired
2744 * or because the DIEP_NODOWNLOAD flag was passed.
2746 #define DI_DOWNLOADSKIPPED ((HRESULT)0x00000003L)
2749 * The parameters of the effect were successfully updated by
2750 * IDirectInputEffect::SetParameters, but in order to change
2751 * the parameters, the effect needed to be restarted.
2753 #define DI_EFFECTRESTARTED ((HRESULT)0x00000004L)
2756 * The parameters of the effect were successfully updated by
2757 * IDirectInputEffect::SetParameters, but some of them were
2758 * beyond the capabilities of the device and were truncated.
2760 #define DI_TRUNCATED ((HRESULT)0x00000008L)
2763 * The settings have been successfully applied but could not be
2764 * persisted.
2766 #define DI_SETTINGSNOTSAVED ((HRESULT)0x0000000BL)
2769 * Equal to DI_EFFECTRESTARTED | DI_TRUNCATED.
2771 #define DI_TRUNCATEDANDRESTARTED ((HRESULT)0x0000000CL)
2774 * A SUCCESS code indicating that settings cannot be modified.
2776 #define DI_WRITEPROTECT ((HRESULT)0x00000013L)
2779 * The application requires a newer version of DirectInput.
2781 #define DIERR_OLDDIRECTINPUTVERSION \
2782 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_OLD_WIN_VERSION)
2785 * The application was written for an unsupported prerelease version
2786 * of DirectInput.
2788 #define DIERR_BETADIRECTINPUTVERSION \
2789 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_RMODE_APP)
2792 * The object could not be created due to an incompatible driver version
2793 * or mismatched or incomplete driver components.
2795 #define DIERR_BADDRIVERVER \
2796 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BAD_DRIVER_LEVEL)
2799 * The device or device instance or effect is not registered with DirectInput.
2801 #define DIERR_DEVICENOTREG REGDB_E_CLASSNOTREG
2804 * The requested object does not exist.
2806 #define DIERR_NOTFOUND \
2807 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND)
2810 * The requested object does not exist.
2812 #define DIERR_OBJECTNOTFOUND \
2813 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND)
2816 * An invalid parameter was passed to the returning function,
2817 * or the object was not in a state that admitted the function
2818 * to be called.
2820 #define DIERR_INVALIDPARAM E_INVALIDARG
2823 * The specified interface is not supported by the object
2825 #define DIERR_NOINTERFACE E_NOINTERFACE
2828 * An undetermined error occured inside the DInput subsystem
2830 #define DIERR_GENERIC E_FAIL
2833 * The DInput subsystem couldn't allocate sufficient memory to complete the
2834 * caller's request.
2836 #define DIERR_OUTOFMEMORY E_OUTOFMEMORY
2839 * The function called is not supported at this time
2841 #define DIERR_UNSUPPORTED E_NOTIMPL
2844 * This object has not been initialized
2846 #define DIERR_NOTINITIALIZED \
2847 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_NOT_READY)
2850 * This object is already initialized
2852 #define DIERR_ALREADYINITIALIZED \
2853 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_ALREADY_INITIALIZED)
2856 * This object does not support aggregation
2858 #define DIERR_NOAGGREGATION CLASS_E_NOAGGREGATION
2861 * Another app has a higher priority level, preventing this call from
2862 * succeeding.
2864 #define DIERR_OTHERAPPHASPRIO E_ACCESSDENIED
2867 * Access to the device has been lost. It must be re-acquired.
2869 #define DIERR_INPUTLOST \
2870 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_READ_FAULT)
2873 * The operation cannot be performed while the device is acquired.
2875 #define DIERR_ACQUIRED \
2876 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BUSY)
2879 * The operation cannot be performed unless the device is acquired.
2881 #define DIERR_NOTACQUIRED \
2882 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_INVALID_ACCESS)
2885 * The specified property cannot be changed.
2887 #define DIERR_READONLY E_ACCESSDENIED
2890 * The device already has an event notification associated with it.
2892 #define DIERR_HANDLEEXISTS E_ACCESSDENIED
2895 * Data is not yet available.
2897 #ifndef E_PENDING
2898 #define E_PENDING 0x8000000AL
2899 #endif
2902 * Unable to IDirectInputJoyConfig_Acquire because the user
2903 * does not have sufficient privileges to change the joystick
2904 * configuration.
2906 #define DIERR_INSUFFICIENTPRIVS 0x80040200L
2909 * The device is full.
2911 #define DIERR_DEVICEFULL 0x80040201L
2914 * Not all the requested information fit into the buffer.
2916 #define DIERR_MOREDATA 0x80040202L
2919 * The effect is not downloaded.
2921 #define DIERR_NOTDOWNLOADED 0x80040203L
2924 * The device cannot be reinitialized because there are still effects
2925 * attached to it.
2927 #define DIERR_HASEFFECTS 0x80040204L
2930 * The operation cannot be performed unless the device is acquired
2931 * in DISCL_EXCLUSIVE mode.
2933 #define DIERR_NOTEXCLUSIVEACQUIRED 0x80040205L
2936 * The effect could not be downloaded because essential information
2937 * is missing. For example, no axes have been associated with the
2938 * effect, or no type-specific information has been created.
2940 #define DIERR_INCOMPLETEEFFECT 0x80040206L
2943 * Attempted to read buffered device data from a device that is
2944 * not buffered.
2946 #define DIERR_NOTBUFFERED 0x80040207L
2949 * An attempt was made to modify parameters of an effect while it is
2950 * playing. Not all hardware devices support altering the parameters
2951 * of an effect while it is playing.
2953 #define DIERR_EFFECTPLAYING 0x80040208L
2956 * The operation could not be completed because the device is not
2957 * plugged in.
2959 #define DIERR_UNPLUGGED 0x80040209L
2962 * SendDeviceData failed because more information was requested
2963 * to be sent than can be sent to the device. Some devices have
2964 * restrictions on how much data can be sent to them. (For example,
2965 * there might be a limit on the number of buttons that can be
2966 * pressed at once.)
2968 #define DIERR_REPORTFULL 0x8004020AL
2972 * A mapper file function failed because reading or writing the user or IHV
2973 * settings file failed.
2975 #define DIERR_MAPFILEFAIL 0x8004020BL
2978 /*--- DINPUT Mapper Definitions: New for Dx8 ---*/
2981 /*--- Keyboard
2982 Physical Keyboard Device ---*/
2984 #define DIKEYBOARD_ESCAPE 0x81000401
2985 #define DIKEYBOARD_1 0x81000402
2986 #define DIKEYBOARD_2 0x81000403
2987 #define DIKEYBOARD_3 0x81000404
2988 #define DIKEYBOARD_4 0x81000405
2989 #define DIKEYBOARD_5 0x81000406
2990 #define DIKEYBOARD_6 0x81000407
2991 #define DIKEYBOARD_7 0x81000408
2992 #define DIKEYBOARD_8 0x81000409
2993 #define DIKEYBOARD_9 0x8100040A
2994 #define DIKEYBOARD_0 0x8100040B
2995 #define DIKEYBOARD_MINUS 0x8100040C /* - on main keyboard */
2996 #define DIKEYBOARD_EQUALS 0x8100040D
2997 #define DIKEYBOARD_BACK 0x8100040E /* backspace */
2998 #define DIKEYBOARD_TAB 0x8100040F
2999 #define DIKEYBOARD_Q 0x81000410
3000 #define DIKEYBOARD_W 0x81000411
3001 #define DIKEYBOARD_E 0x81000412
3002 #define DIKEYBOARD_R 0x81000413
3003 #define DIKEYBOARD_T 0x81000414
3004 #define DIKEYBOARD_Y 0x81000415
3005 #define DIKEYBOARD_U 0x81000416
3006 #define DIKEYBOARD_I 0x81000417
3007 #define DIKEYBOARD_O 0x81000418
3008 #define DIKEYBOARD_P 0x81000419
3009 #define DIKEYBOARD_LBRACKET 0x8100041A
3010 #define DIKEYBOARD_RBRACKET 0x8100041B
3011 #define DIKEYBOARD_RETURN 0x8100041C /* Enter on main keyboard */
3012 #define DIKEYBOARD_LCONTROL 0x8100041D
3013 #define DIKEYBOARD_A 0x8100041E
3014 #define DIKEYBOARD_S 0x8100041F
3015 #define DIKEYBOARD_D 0x81000420
3016 #define DIKEYBOARD_F 0x81000421
3017 #define DIKEYBOARD_G 0x81000422
3018 #define DIKEYBOARD_H 0x81000423
3019 #define DIKEYBOARD_J 0x81000424
3020 #define DIKEYBOARD_K 0x81000425
3021 #define DIKEYBOARD_L 0x81000426
3022 #define DIKEYBOARD_SEMICOLON 0x81000427
3023 #define DIKEYBOARD_APOSTROPHE 0x81000428
3024 #define DIKEYBOARD_GRAVE 0x81000429 /* accent grave */
3025 #define DIKEYBOARD_LSHIFT 0x8100042A
3026 #define DIKEYBOARD_BACKSLASH 0x8100042B
3027 #define DIKEYBOARD_Z 0x8100042C
3028 #define DIKEYBOARD_X 0x8100042D
3029 #define DIKEYBOARD_C 0x8100042E
3030 #define DIKEYBOARD_V 0x8100042F
3031 #define DIKEYBOARD_B 0x81000430
3032 #define DIKEYBOARD_N 0x81000431
3033 #define DIKEYBOARD_M 0x81000432
3034 #define DIKEYBOARD_COMMA 0x81000433
3035 #define DIKEYBOARD_PERIOD 0x81000434 /* . on main keyboard */
3036 #define DIKEYBOARD_SLASH 0x81000435 /* / on main keyboard */
3037 #define DIKEYBOARD_RSHIFT 0x81000436
3038 #define DIKEYBOARD_MULTIPLY 0x81000437 /* * on numeric keypad */
3039 #define DIKEYBOARD_LMENU 0x81000438 /* left Alt */
3040 #define DIKEYBOARD_SPACE 0x81000439
3041 #define DIKEYBOARD_CAPITAL 0x8100043A
3042 #define DIKEYBOARD_F1 0x8100043B
3043 #define DIKEYBOARD_F2 0x8100043C
3044 #define DIKEYBOARD_F3 0x8100043D
3045 #define DIKEYBOARD_F4 0x8100043E
3046 #define DIKEYBOARD_F5 0x8100043F
3047 #define DIKEYBOARD_F6 0x81000440
3048 #define DIKEYBOARD_F7 0x81000441
3049 #define DIKEYBOARD_F8 0x81000442
3050 #define DIKEYBOARD_F9 0x81000443
3051 #define DIKEYBOARD_F10 0x81000444
3052 #define DIKEYBOARD_NUMLOCK 0x81000445
3053 #define DIKEYBOARD_SCROLL 0x81000446 /* Scroll Lock */
3054 #define DIKEYBOARD_NUMPAD7 0x81000447
3055 #define DIKEYBOARD_NUMPAD8 0x81000448
3056 #define DIKEYBOARD_NUMPAD9 0x81000449
3057 #define DIKEYBOARD_SUBTRACT 0x8100044A /* - on numeric keypad */
3058 #define DIKEYBOARD_NUMPAD4 0x8100044B
3059 #define DIKEYBOARD_NUMPAD5 0x8100044C
3060 #define DIKEYBOARD_NUMPAD6 0x8100044D
3061 #define DIKEYBOARD_ADD 0x8100044E /* + on numeric keypad */
3062 #define DIKEYBOARD_NUMPAD1 0x8100044F
3063 #define DIKEYBOARD_NUMPAD2 0x81000450
3064 #define DIKEYBOARD_NUMPAD3 0x81000451
3065 #define DIKEYBOARD_NUMPAD0 0x81000452
3066 #define DIKEYBOARD_DECIMAL 0x81000453 /* . on numeric keypad */
3067 #define DIKEYBOARD_OEM_102 0x81000456 /* <> or \| on RT 102-key keyboard (Non-U.S.) */
3068 #define DIKEYBOARD_F11 0x81000457
3069 #define DIKEYBOARD_F12 0x81000458
3070 #define DIKEYBOARD_F13 0x81000464 /* (NEC PC98) */
3071 #define DIKEYBOARD_F14 0x81000465 /* (NEC PC98) */
3072 #define DIKEYBOARD_F15 0x81000466 /* (NEC PC98) */
3073 #define DIKEYBOARD_KANA 0x81000470 /* (Japanese keyboard) */
3074 #define DIKEYBOARD_ABNT_C1 0x81000473 /* /? on Brazilian keyboard */
3075 #define DIKEYBOARD_CONVERT 0x81000479 /* (Japanese keyboard) */
3076 #define DIKEYBOARD_NOCONVERT 0x8100047B /* (Japanese keyboard) */
3077 #define DIKEYBOARD_YEN 0x8100047D /* (Japanese keyboard) */
3078 #define DIKEYBOARD_ABNT_C2 0x8100047E /* Numpad . on Brazilian keyboard */
3079 #define DIKEYBOARD_NUMPADEQUALS 0x8100048D /* = on numeric keypad (NEC PC98) */
3080 #define DIKEYBOARD_PREVTRACK 0x81000490 /* Previous Track (DIK_CIRCUMFLEX on Japanese keyboard) */
3081 #define DIKEYBOARD_AT 0x81000491 /* (NEC PC98) */
3082 #define DIKEYBOARD_COLON 0x81000492 /* (NEC PC98) */
3083 #define DIKEYBOARD_UNDERLINE 0x81000493 /* (NEC PC98) */
3084 #define DIKEYBOARD_KANJI 0x81000494 /* (Japanese keyboard) */
3085 #define DIKEYBOARD_STOP 0x81000495 /* (NEC PC98) */
3086 #define DIKEYBOARD_AX 0x81000496 /* (Japan AX) */
3087 #define DIKEYBOARD_UNLABELED 0x81000497 /* (J3100) */
3088 #define DIKEYBOARD_NEXTTRACK 0x81000499 /* Next Track */
3089 #define DIKEYBOARD_NUMPADENTER 0x8100049C /* Enter on numeric keypad */
3090 #define DIKEYBOARD_RCONTROL 0x8100049D
3091 #define DIKEYBOARD_MUTE 0x810004A0 /* Mute */
3092 #define DIKEYBOARD_CALCULATOR 0x810004A1 /* Calculator */
3093 #define DIKEYBOARD_PLAYPAUSE 0x810004A2 /* Play / Pause */
3094 #define DIKEYBOARD_MEDIASTOP 0x810004A4 /* Media Stop */
3095 #define DIKEYBOARD_VOLUMEDOWN 0x810004AE /* Volume - */
3096 #define DIKEYBOARD_VOLUMEUP 0x810004B0 /* Volume + */
3097 #define DIKEYBOARD_WEBHOME 0x810004B2 /* Web home */
3098 #define DIKEYBOARD_NUMPADCOMMA 0x810004B3 /* , on numeric keypad (NEC PC98) */
3099 #define DIKEYBOARD_DIVIDE 0x810004B5 /* / on numeric keypad */
3100 #define DIKEYBOARD_SYSRQ 0x810004B7
3101 #define DIKEYBOARD_RMENU 0x810004B8 /* right Alt */
3102 #define DIKEYBOARD_PAUSE 0x810004C5 /* Pause */
3103 #define DIKEYBOARD_HOME 0x810004C7 /* Home on arrow keypad */
3104 #define DIKEYBOARD_UP 0x810004C8 /* UpArrow on arrow keypad */
3105 #define DIKEYBOARD_PRIOR 0x810004C9 /* PgUp on arrow keypad */
3106 #define DIKEYBOARD_LEFT 0x810004CB /* LeftArrow on arrow keypad */
3107 #define DIKEYBOARD_RIGHT 0x810004CD /* RightArrow on arrow keypad */
3108 #define DIKEYBOARD_END 0x810004CF /* End on arrow keypad */
3109 #define DIKEYBOARD_DOWN 0x810004D0 /* DownArrow on arrow keypad */
3110 #define DIKEYBOARD_NEXT 0x810004D1 /* PgDn on arrow keypad */
3111 #define DIKEYBOARD_INSERT 0x810004D2 /* Insert on arrow keypad */
3112 #define DIKEYBOARD_DELETE 0x810004D3 /* Delete on arrow keypad */
3113 #define DIKEYBOARD_LWIN 0x810004DB /* Left Windows key */
3114 #define DIKEYBOARD_RWIN 0x810004DC /* Right Windows key */
3115 #define DIKEYBOARD_APPS 0x810004DD /* AppMenu key */
3116 #define DIKEYBOARD_POWER 0x810004DE /* System Power */
3117 #define DIKEYBOARD_SLEEP 0x810004DF /* System Sleep */
3118 #define DIKEYBOARD_WAKE 0x810004E3 /* System Wake */
3119 #define DIKEYBOARD_WEBSEARCH 0x810004E5 /* Web Search */
3120 #define DIKEYBOARD_WEBFAVORITES 0x810004E6 /* Web Favorites */
3121 #define DIKEYBOARD_WEBREFRESH 0x810004E7 /* Web Refresh */
3122 #define DIKEYBOARD_WEBSTOP 0x810004E8 /* Web Stop */
3123 #define DIKEYBOARD_WEBFORWARD 0x810004E9 /* Web Forward */
3124 #define DIKEYBOARD_WEBBACK 0x810004EA /* Web Back */
3125 #define DIKEYBOARD_MYCOMPUTER 0x810004EB /* My Computer */
3126 #define DIKEYBOARD_MAIL 0x810004EC /* Mail */
3127 #define DIKEYBOARD_MEDIASELECT 0x810004ED /* Media Select */
3130 /*--- MOUSE
3131 Physical Mouse Device ---*/
3133 #define DIMOUSE_XAXISAB (0x82000200 |DIMOFS_X ) /* X Axis-absolute: Some mice natively report absolute coordinates */
3134 #define DIMOUSE_YAXISAB (0x82000200 |DIMOFS_Y ) /* Y Axis-absolute: Some mice natively report absolute coordinates */
3135 #define DIMOUSE_XAXIS (0x82000300 |DIMOFS_X ) /* X Axis */
3136 #define DIMOUSE_YAXIS (0x82000300 |DIMOFS_Y ) /* Y Axis */
3137 #define DIMOUSE_WHEEL (0x82000300 |DIMOFS_Z ) /* Z Axis */
3138 #define DIMOUSE_BUTTON0 (0x82000400 |DIMOFS_BUTTON0) /* Button 0 */
3139 #define DIMOUSE_BUTTON1 (0x82000400 |DIMOFS_BUTTON1) /* Button 1 */
3140 #define DIMOUSE_BUTTON2 (0x82000400 |DIMOFS_BUTTON2) /* Button 2 */
3141 #define DIMOUSE_BUTTON3 (0x82000400 |DIMOFS_BUTTON3) /* Button 3 */
3142 #define DIMOUSE_BUTTON4 (0x82000400 |DIMOFS_BUTTON4) /* Button 4 */
3143 #define DIMOUSE_BUTTON5 (0x82000400 |DIMOFS_BUTTON5) /* Button 5 */
3144 #define DIMOUSE_BUTTON6 (0x82000400 |DIMOFS_BUTTON6) /* Button 6 */
3145 #define DIMOUSE_BUTTON7 (0x82000400 |DIMOFS_BUTTON7) /* Button 7 */
3148 /*--- VOICE
3149 Physical Dplay Voice Device ---*/
3151 #define DIVOICE_CHANNEL1 0x83000401
3152 #define DIVOICE_CHANNEL2 0x83000402
3153 #define DIVOICE_CHANNEL3 0x83000403
3154 #define DIVOICE_CHANNEL4 0x83000404
3155 #define DIVOICE_CHANNEL5 0x83000405
3156 #define DIVOICE_CHANNEL6 0x83000406
3157 #define DIVOICE_CHANNEL7 0x83000407
3158 #define DIVOICE_CHANNEL8 0x83000408
3159 #define DIVOICE_TEAM 0x83000409
3160 #define DIVOICE_ALL 0x8300040A
3161 #define DIVOICE_RECORDMUTE 0x8300040B
3162 #define DIVOICE_PLAYBACKMUTE 0x8300040C
3163 #define DIVOICE_TRANSMIT 0x8300040D
3165 #define DIVOICE_VOICECOMMAND 0x83000410
3168 /*--- Driving Simulator - Racing
3169 Vehicle control is primary objective ---*/
3170 #define DIVIRTUAL_DRIVING_RACE 0x01000000
3171 #define DIAXIS_DRIVINGR_STEER 0x01008A01 /* Steering */
3172 #define DIAXIS_DRIVINGR_ACCELERATE 0x01039202 /* Accelerate */
3173 #define DIAXIS_DRIVINGR_BRAKE 0x01041203 /* Brake-Axis */
3174 #define DIBUTTON_DRIVINGR_SHIFTUP 0x01000C01 /* Shift to next higher gear */
3175 #define DIBUTTON_DRIVINGR_SHIFTDOWN 0x01000C02 /* Shift to next lower gear */
3176 #define DIBUTTON_DRIVINGR_VIEW 0x01001C03 /* Cycle through view options */
3177 #define DIBUTTON_DRIVINGR_MENU 0x010004FD /* Show menu options */
3178 /*--- Priority 2 controls ---*/
3180 #define DIAXIS_DRIVINGR_ACCEL_AND_BRAKE 0x01014A04 /* Some devices combine accelerate and brake in a single axis */
3181 #define DIHATSWITCH_DRIVINGR_GLANCE 0x01004601 /* Look around */
3182 #define DIBUTTON_DRIVINGR_BRAKE 0x01004C04 /* Brake-button */
3183 #define DIBUTTON_DRIVINGR_DASHBOARD 0x01004405 /* Select next dashboard option */
3184 #define DIBUTTON_DRIVINGR_AIDS 0x01004406 /* Driver correction aids */
3185 #define DIBUTTON_DRIVINGR_MAP 0x01004407 /* Display Driving Map */
3186 #define DIBUTTON_DRIVINGR_BOOST 0x01004408 /* Turbo Boost */
3187 #define DIBUTTON_DRIVINGR_PIT 0x01004409 /* Pit stop notification */
3188 #define DIBUTTON_DRIVINGR_ACCELERATE_LINK 0x0103D4E0 /* Fallback Accelerate button */
3189 #define DIBUTTON_DRIVINGR_STEER_LEFT_LINK 0x0100CCE4 /* Fallback Steer Left button */
3190 #define DIBUTTON_DRIVINGR_STEER_RIGHT_LINK 0x0100CCEC /* Fallback Steer Right button */
3191 #define DIBUTTON_DRIVINGR_GLANCE_LEFT_LINK 0x0107C4E4 /* Fallback Glance Left button */
3192 #define DIBUTTON_DRIVINGR_GLANCE_RIGHT_LINK 0x0107C4EC /* Fallback Glance Right button */
3193 #define DIBUTTON_DRIVINGR_DEVICE 0x010044FE /* Show input device and controls */
3194 #define DIBUTTON_DRIVINGR_PAUSE 0x010044FC /* Start / Pause / Restart game */
3196 /*--- Driving Simulator - Combat
3197 Combat from within a vehicle is primary objective ---*/
3198 #define DIVIRTUAL_DRIVING_COMBAT 0x02000000
3199 #define DIAXIS_DRIVINGC_STEER 0x02008A01 /* Steering */
3200 #define DIAXIS_DRIVINGC_ACCELERATE 0x02039202 /* Accelerate */
3201 #define DIAXIS_DRIVINGC_BRAKE 0x02041203 /* Brake-axis */
3202 #define DIBUTTON_DRIVINGC_FIRE 0x02000C01 /* Fire */
3203 #define DIBUTTON_DRIVINGC_WEAPONS 0x02000C02 /* Select next weapon */
3204 #define DIBUTTON_DRIVINGC_TARGET 0x02000C03 /* Select next available target */
3205 #define DIBUTTON_DRIVINGC_MENU 0x020004FD /* Show menu options */
3206 /*--- Priority 2 controls ---*/
3208 #define DIAXIS_DRIVINGC_ACCEL_AND_BRAKE 0x02014A04 /* Some devices combine accelerate and brake in a single axis */
3209 #define DIHATSWITCH_DRIVINGC_GLANCE 0x02004601 /* Look around */
3210 #define DIBUTTON_DRIVINGC_SHIFTUP 0x02004C04 /* Shift to next higher gear */
3211 #define DIBUTTON_DRIVINGC_SHIFTDOWN 0x02004C05 /* Shift to next lower gear */
3212 #define DIBUTTON_DRIVINGC_DASHBOARD 0x02004406 /* Select next dashboard option */
3213 #define DIBUTTON_DRIVINGC_AIDS 0x02004407 /* Driver correction aids */
3214 #define DIBUTTON_DRIVINGC_BRAKE 0x02004C08 /* Brake-button */
3215 #define DIBUTTON_DRIVINGC_FIRESECONDARY 0x02004C09 /* Alternative fire button */
3216 #define DIBUTTON_DRIVINGC_ACCELERATE_LINK 0x0203D4E0 /* Fallback Accelerate button */
3217 #define DIBUTTON_DRIVINGC_STEER_LEFT_LINK 0x0200CCE4 /* Fallback Steer Left button */
3218 #define DIBUTTON_DRIVINGC_STEER_RIGHT_LINK 0x0200CCEC /* Fallback Steer Right button */
3219 #define DIBUTTON_DRIVINGC_GLANCE_LEFT_LINK 0x0207C4E4 /* Fallback Glance Left button */
3220 #define DIBUTTON_DRIVINGC_GLANCE_RIGHT_LINK 0x0207C4EC /* Fallback Glance Right button */
3221 #define DIBUTTON_DRIVINGC_DEVICE 0x020044FE /* Show input device and controls */
3222 #define DIBUTTON_DRIVINGC_PAUSE 0x020044FC /* Start / Pause / Restart game */
3224 /*--- Driving Simulator - Tank
3225 Combat from withing a tank is primary objective ---*/
3226 #define DIVIRTUAL_DRIVING_TANK 0x03000000
3227 #define DIAXIS_DRIVINGT_STEER 0x03008A01 /* Turn tank left / right */
3228 #define DIAXIS_DRIVINGT_BARREL 0x03010202 /* Raise / lower barrel */
3229 #define DIAXIS_DRIVINGT_ACCELERATE 0x03039203 /* Accelerate */
3230 #define DIAXIS_DRIVINGT_ROTATE 0x03020204 /* Turn barrel left / right */
3231 #define DIBUTTON_DRIVINGT_FIRE 0x03000C01 /* Fire */
3232 #define DIBUTTON_DRIVINGT_WEAPONS 0x03000C02 /* Select next weapon */
3233 #define DIBUTTON_DRIVINGT_TARGET 0x03000C03 /* Selects next available target */
3234 #define DIBUTTON_DRIVINGT_MENU 0x030004FD /* Show menu options */
3235 /*--- Priority 2 controls ---*/
3237 #define DIHATSWITCH_DRIVINGT_GLANCE 0x03004601 /* Look around */
3238 #define DIAXIS_DRIVINGT_BRAKE 0x03045205 /* Brake-axis */
3239 #define DIAXIS_DRIVINGT_ACCEL_AND_BRAKE 0x03014A06 /* Some devices combine accelerate and brake in a single axis */
3240 #define DIBUTTON_DRIVINGT_VIEW 0x03005C04 /* Cycle through view options */
3241 #define DIBUTTON_DRIVINGT_DASHBOARD 0x03005C05 /* Select next dashboard option */
3242 #define DIBUTTON_DRIVINGT_BRAKE 0x03004C06 /* Brake-button */
3243 #define DIBUTTON_DRIVINGT_FIRESECONDARY 0x03004C07 /* Alternative fire button */
3244 #define DIBUTTON_DRIVINGT_ACCELERATE_LINK 0x0303D4E0 /* Fallback Accelerate button */
3245 #define DIBUTTON_DRIVINGT_STEER_LEFT_LINK 0x0300CCE4 /* Fallback Steer Left button */
3246 #define DIBUTTON_DRIVINGT_STEER_RIGHT_LINK 0x0300CCEC /* Fallback Steer Right button */
3247 #define DIBUTTON_DRIVINGT_BARREL_UP_LINK 0x030144E0 /* Fallback Barrel up button */
3248 #define DIBUTTON_DRIVINGT_BARREL_DOWN_LINK 0x030144E8 /* Fallback Barrel down button */
3249 #define DIBUTTON_DRIVINGT_ROTATE_LEFT_LINK 0x030244E4 /* Fallback Rotate left button */
3250 #define DIBUTTON_DRIVINGT_ROTATE_RIGHT_LINK 0x030244EC /* Fallback Rotate right button */
3251 #define DIBUTTON_DRIVINGT_GLANCE_LEFT_LINK 0x0307C4E4 /* Fallback Glance Left button */
3252 #define DIBUTTON_DRIVINGT_GLANCE_RIGHT_LINK 0x0307C4EC /* Fallback Glance Right button */
3253 #define DIBUTTON_DRIVINGT_DEVICE 0x030044FE /* Show input device and controls */
3254 #define DIBUTTON_DRIVINGT_PAUSE 0x030044FC /* Start / Pause / Restart game */
3256 /*--- Flight Simulator - Civilian
3257 Plane control is the primary objective ---*/
3258 #define DIVIRTUAL_FLYING_CIVILIAN 0x04000000
3259 #define DIAXIS_FLYINGC_BANK 0x04008A01 /* Roll ship left / right */
3260 #define DIAXIS_FLYINGC_PITCH 0x04010A02 /* Nose up / down */
3261 #define DIAXIS_FLYINGC_THROTTLE 0x04039203 /* Throttle */
3262 #define DIBUTTON_FLYINGC_VIEW 0x04002401 /* Cycle through view options */
3263 #define DIBUTTON_FLYINGC_DISPLAY 0x04002402 /* Select next dashboard / heads up display option */
3264 #define DIBUTTON_FLYINGC_GEAR 0x04002C03 /* Gear up / down */
3265 #define DIBUTTON_FLYINGC_MENU 0x040004FD /* Show menu options */
3266 /*--- Priority 2 controls ---*/
3268 #define DIHATSWITCH_FLYINGC_GLANCE 0x04004601 /* Look around */
3269 #define DIAXIS_FLYINGC_BRAKE 0x04046A04 /* Apply Brake */
3270 #define DIAXIS_FLYINGC_RUDDER 0x04025205 /* Yaw ship left/right */
3271 #define DIAXIS_FLYINGC_FLAPS 0x04055A06 /* Flaps */
3272 #define DIBUTTON_FLYINGC_FLAPSUP 0x04006404 /* Increment stepping up until fully retracted */
3273 #define DIBUTTON_FLYINGC_FLAPSDOWN 0x04006405 /* Decrement stepping down until fully extended */
3274 #define DIBUTTON_FLYINGC_BRAKE_LINK 0x04046CE0 /* Fallback brake button */
3275 #define DIBUTTON_FLYINGC_FASTER_LINK 0x0403D4E0 /* Fallback throttle up button */
3276 #define DIBUTTON_FLYINGC_SLOWER_LINK 0x0403D4E8 /* Fallback throttle down button */
3277 #define DIBUTTON_FLYINGC_GLANCE_LEFT_LINK 0x0407C4E4 /* Fallback Glance Left button */
3278 #define DIBUTTON_FLYINGC_GLANCE_RIGHT_LINK 0x0407C4EC /* Fallback Glance Right button */
3279 #define DIBUTTON_FLYINGC_GLANCE_UP_LINK 0x0407C4E0 /* Fallback Glance Up button */
3280 #define DIBUTTON_FLYINGC_GLANCE_DOWN_LINK 0x0407C4E8 /* Fallback Glance Down button */
3281 #define DIBUTTON_FLYINGC_DEVICE 0x040044FE /* Show input device and controls */
3282 #define DIBUTTON_FLYINGC_PAUSE 0x040044FC /* Start / Pause / Restart game */
3284 /*--- Flight Simulator - Military
3285 Aerial combat is the primary objective ---*/
3286 #define DIVIRTUAL_FLYING_MILITARY 0x05000000
3287 #define DIAXIS_FLYINGM_BANK 0x05008A01 /* Bank - Roll ship left / right */
3288 #define DIAXIS_FLYINGM_PITCH 0x05010A02 /* Pitch - Nose up / down */
3289 #define DIAXIS_FLYINGM_THROTTLE 0x05039203 /* Throttle - faster / slower */
3290 #define DIBUTTON_FLYINGM_FIRE 0x05000C01 /* Fire */
3291 #define DIBUTTON_FLYINGM_WEAPONS 0x05000C02 /* Select next weapon */
3292 #define DIBUTTON_FLYINGM_TARGET 0x05000C03 /* Selects next available target */
3293 #define DIBUTTON_FLYINGM_MENU 0x050004FD /* Show menu options */
3294 /*--- Priority 2 controls ---*/
3296 #define DIHATSWITCH_FLYINGM_GLANCE 0x05004601 /* Look around */
3297 #define DIBUTTON_FLYINGM_COUNTER 0x05005C04 /* Activate counter measures */
3298 #define DIAXIS_FLYINGM_RUDDER 0x05024A04 /* Rudder - Yaw ship left/right */
3299 #define DIAXIS_FLYINGM_BRAKE 0x05046205 /* Brake-axis */
3300 #define DIBUTTON_FLYINGM_VIEW 0x05006405 /* Cycle through view options */
3301 #define DIBUTTON_FLYINGM_DISPLAY 0x05006406 /* Select next dashboard option */
3302 #define DIAXIS_FLYINGM_FLAPS 0x05055206 /* Flaps */
3303 #define DIBUTTON_FLYINGM_FLAPSUP 0x05005407 /* Increment stepping up until fully retracted */
3304 #define DIBUTTON_FLYINGM_FLAPSDOWN 0x05005408 /* Decrement stepping down until fully extended */
3305 #define DIBUTTON_FLYINGM_FIRESECONDARY 0x05004C09 /* Alternative fire button */
3306 #define DIBUTTON_FLYINGM_GEAR 0x0500640A /* Gear up / down */
3307 #define DIBUTTON_FLYINGM_BRAKE_LINK 0x050464E0 /* Fallback brake button */
3308 #define DIBUTTON_FLYINGM_FASTER_LINK 0x0503D4E0 /* Fallback throttle up button */
3309 #define DIBUTTON_FLYINGM_SLOWER_LINK 0x0503D4E8 /* Fallback throttle down button */
3310 #define DIBUTTON_FLYINGM_GLANCE_LEFT_LINK 0x0507C4E4 /* Fallback Glance Left button */
3311 #define DIBUTTON_FLYINGM_GLANCE_RIGHT_LINK 0x0507C4EC /* Fallback Glance Right button */
3312 #define DIBUTTON_FLYINGM_GLANCE_UP_LINK 0x0507C4E0 /* Fallback Glance Up button */
3313 #define DIBUTTON_FLYINGM_GLANCE_DOWN_LINK 0x0507C4E8 /* Fallback Glance Down button */
3314 #define DIBUTTON_FLYINGM_DEVICE 0x050044FE /* Show input device and controls */
3315 #define DIBUTTON_FLYINGM_PAUSE 0x050044FC /* Start / Pause / Restart game */
3317 /*--- Flight Simulator - Combat Helicopter
3318 Combat from helicopter is primary objective ---*/
3319 #define DIVIRTUAL_FLYING_HELICOPTER 0x06000000
3320 #define DIAXIS_FLYINGH_BANK 0x06008A01 /* Bank - Roll ship left / right */
3321 #define DIAXIS_FLYINGH_PITCH 0x06010A02 /* Pitch - Nose up / down */
3322 #define DIAXIS_FLYINGH_COLLECTIVE 0x06018A03 /* Collective - Blade pitch/power */
3323 #define DIBUTTON_FLYINGH_FIRE 0x06001401 /* Fire */
3324 #define DIBUTTON_FLYINGH_WEAPONS 0x06001402 /* Select next weapon */
3325 #define DIBUTTON_FLYINGH_TARGET 0x06001403 /* Selects next available target */
3326 #define DIBUTTON_FLYINGH_MENU 0x060004FD /* Show menu options */
3327 /*--- Priority 2 controls ---*/
3329 #define DIHATSWITCH_FLYINGH_GLANCE 0x06004601 /* Look around */
3330 #define DIAXIS_FLYINGH_TORQUE 0x06025A04 /* Torque - Rotate ship around left / right axis */
3331 #define DIAXIS_FLYINGH_THROTTLE 0x0603DA05 /* Throttle */
3332 #define DIBUTTON_FLYINGH_COUNTER 0x06005404 /* Activate counter measures */
3333 #define DIBUTTON_FLYINGH_VIEW 0x06006405 /* Cycle through view options */
3334 #define DIBUTTON_FLYINGH_GEAR 0x06006406 /* Gear up / down */
3335 #define DIBUTTON_FLYINGH_FIRESECONDARY 0x06004C07 /* Alternative fire button */
3336 #define DIBUTTON_FLYINGH_FASTER_LINK 0x0603DCE0 /* Fallback throttle up button */
3337 #define DIBUTTON_FLYINGH_SLOWER_LINK 0x0603DCE8 /* Fallback throttle down button */
3338 #define DIBUTTON_FLYINGH_GLANCE_LEFT_LINK 0x0607C4E4 /* Fallback Glance Left button */
3339 #define DIBUTTON_FLYINGH_GLANCE_RIGHT_LINK 0x0607C4EC /* Fallback Glance Right button */
3340 #define DIBUTTON_FLYINGH_GLANCE_UP_LINK 0x0607C4E0 /* Fallback Glance Up button */
3341 #define DIBUTTON_FLYINGH_GLANCE_DOWN_LINK 0x0607C4E8 /* Fallback Glance Down button */
3342 #define DIBUTTON_FLYINGH_DEVICE 0x060044FE /* Show input device and controls */
3343 #define DIBUTTON_FLYINGH_PAUSE 0x060044FC /* Start / Pause / Restart game */
3345 /*--- Space Simulator - Combat
3346 Space Simulator with weapons ---*/
3347 #define DIVIRTUAL_SPACESIM 0x07000000
3348 #define DIAXIS_SPACESIM_LATERAL 0x07008201 /* Move ship left / right */
3349 #define DIAXIS_SPACESIM_MOVE 0x07010202 /* Move ship forward/backward */
3350 #define DIAXIS_SPACESIM_THROTTLE 0x07038203 /* Throttle - Engine speed */
3351 #define DIBUTTON_SPACESIM_FIRE 0x07000401 /* Fire */
3352 #define DIBUTTON_SPACESIM_WEAPONS 0x07000402 /* Select next weapon */
3353 #define DIBUTTON_SPACESIM_TARGET 0x07000403 /* Selects next available target */
3354 #define DIBUTTON_SPACESIM_MENU 0x070004FD /* Show menu options */
3355 /*--- Priority 2 controls ---*/
3357 #define DIHATSWITCH_SPACESIM_GLANCE 0x07004601 /* Look around */
3358 #define DIAXIS_SPACESIM_CLIMB 0x0701C204 /* Climb - Pitch ship up/down */
3359 #define DIAXIS_SPACESIM_ROTATE 0x07024205 /* Rotate - Turn ship left/right */
3360 #define DIBUTTON_SPACESIM_VIEW 0x07004404 /* Cycle through view options */
3361 #define DIBUTTON_SPACESIM_DISPLAY 0x07004405 /* Select next dashboard / heads up display option */
3362 #define DIBUTTON_SPACESIM_RAISE 0x07004406 /* Raise ship while maintaining current pitch */
3363 #define DIBUTTON_SPACESIM_LOWER 0x07004407 /* Lower ship while maintaining current pitch */
3364 #define DIBUTTON_SPACESIM_GEAR 0x07004408 /* Gear up / down */
3365 #define DIBUTTON_SPACESIM_FIRESECONDARY 0x07004409 /* Alternative fire button */
3366 #define DIBUTTON_SPACESIM_LEFT_LINK 0x0700C4E4 /* Fallback move left button */
3367 #define DIBUTTON_SPACESIM_RIGHT_LINK 0x0700C4EC /* Fallback move right button */
3368 #define DIBUTTON_SPACESIM_FORWARD_LINK 0x070144E0 /* Fallback move forward button */
3369 #define DIBUTTON_SPACESIM_BACKWARD_LINK 0x070144E8 /* Fallback move backwards button */
3370 #define DIBUTTON_SPACESIM_FASTER_LINK 0x0703C4E0 /* Fallback throttle up button */
3371 #define DIBUTTON_SPACESIM_SLOWER_LINK 0x0703C4E8 /* Fallback throttle down button */
3372 #define DIBUTTON_SPACESIM_TURN_LEFT_LINK 0x070244E4 /* Fallback turn left button */
3373 #define DIBUTTON_SPACESIM_TURN_RIGHT_LINK 0x070244EC /* Fallback turn right button */
3374 #define DIBUTTON_SPACESIM_GLANCE_LEFT_LINK 0x0707C4E4 /* Fallback Glance Left button */
3375 #define DIBUTTON_SPACESIM_GLANCE_RIGHT_LINK 0x0707C4EC /* Fallback Glance Right button */
3376 #define DIBUTTON_SPACESIM_GLANCE_UP_LINK 0x0707C4E0 /* Fallback Glance Up button */
3377 #define DIBUTTON_SPACESIM_GLANCE_DOWN_LINK 0x0707C4E8 /* Fallback Glance Down button */
3378 #define DIBUTTON_SPACESIM_DEVICE 0x070044FE /* Show input device and controls */
3379 #define DIBUTTON_SPACESIM_PAUSE 0x070044FC /* Start / Pause / Restart game */
3381 /*--- Fighting - First Person
3382 Hand to Hand combat is primary objective ---*/
3383 #define DIVIRTUAL_FIGHTING_HAND2HAND 0x08000000
3384 #define DIAXIS_FIGHTINGH_LATERAL 0x08008201 /* Sidestep left/right */
3385 #define DIAXIS_FIGHTINGH_MOVE 0x08010202 /* Move forward/backward */
3386 #define DIBUTTON_FIGHTINGH_PUNCH 0x08000401 /* Punch */
3387 #define DIBUTTON_FIGHTINGH_KICK 0x08000402 /* Kick */
3388 #define DIBUTTON_FIGHTINGH_BLOCK 0x08000403 /* Block */
3389 #define DIBUTTON_FIGHTINGH_CROUCH 0x08000404 /* Crouch */
3390 #define DIBUTTON_FIGHTINGH_JUMP 0x08000405 /* Jump */
3391 #define DIBUTTON_FIGHTINGH_SPECIAL1 0x08000406 /* Apply first special move */
3392 #define DIBUTTON_FIGHTINGH_SPECIAL2 0x08000407 /* Apply second special move */
3393 #define DIBUTTON_FIGHTINGH_MENU 0x080004FD /* Show menu options */
3394 /*--- Priority 2 controls ---*/
3396 #define DIBUTTON_FIGHTINGH_SELECT 0x08004408 /* Select special move */
3397 #define DIHATSWITCH_FIGHTINGH_SLIDE 0x08004601 /* Look around */
3398 #define DIBUTTON_FIGHTINGH_DISPLAY 0x08004409 /* Shows next on-screen display option */
3399 #define DIAXIS_FIGHTINGH_ROTATE 0x08024203 /* Rotate - Turn body left/right */
3400 #define DIBUTTON_FIGHTINGH_DODGE 0x0800440A /* Dodge */
3401 #define DIBUTTON_FIGHTINGH_LEFT_LINK 0x0800C4E4 /* Fallback left sidestep button */
3402 #define DIBUTTON_FIGHTINGH_RIGHT_LINK 0x0800C4EC /* Fallback right sidestep button */
3403 #define DIBUTTON_FIGHTINGH_FORWARD_LINK 0x080144E0 /* Fallback forward button */
3404 #define DIBUTTON_FIGHTINGH_BACKWARD_LINK 0x080144E8 /* Fallback backward button */
3405 #define DIBUTTON_FIGHTINGH_DEVICE 0x080044FE /* Show input device and controls */
3406 #define DIBUTTON_FIGHTINGH_PAUSE 0x080044FC /* Start / Pause / Restart game */
3408 /*--- Fighting - First Person Shooting
3409 Navigation and combat are primary objectives ---*/
3410 #define DIVIRTUAL_FIGHTING_FPS 0x09000000
3411 #define DIAXIS_FPS_ROTATE 0x09008201 /* Rotate character left/right */
3412 #define DIAXIS_FPS_MOVE 0x09010202 /* Move forward/backward */
3413 #define DIBUTTON_FPS_FIRE 0x09000401 /* Fire */
3414 #define DIBUTTON_FPS_WEAPONS 0x09000402 /* Select next weapon */
3415 #define DIBUTTON_FPS_APPLY 0x09000403 /* Use item */
3416 #define DIBUTTON_FPS_SELECT 0x09000404 /* Select next inventory item */
3417 #define DIBUTTON_FPS_CROUCH 0x09000405 /* Crouch/ climb down/ swim down */
3418 #define DIBUTTON_FPS_JUMP 0x09000406 /* Jump/ climb up/ swim up */
3419 #define DIAXIS_FPS_LOOKUPDOWN 0x09018203 /* Look up / down */
3420 #define DIBUTTON_FPS_STRAFE 0x09000407 /* Enable strafing while active */
3421 #define DIBUTTON_FPS_MENU 0x090004FD /* Show menu options */
3422 /*--- Priority 2 controls ---*/
3424 #define DIHATSWITCH_FPS_GLANCE 0x09004601 /* Look around */
3425 #define DIBUTTON_FPS_DISPLAY 0x09004408 /* Shows next on-screen display option/ map */
3426 #define DIAXIS_FPS_SIDESTEP 0x09024204 /* Sidestep */
3427 #define DIBUTTON_FPS_DODGE 0x09004409 /* Dodge */
3428 #define DIBUTTON_FPS_GLANCEL 0x0900440A /* Glance Left */
3429 #define DIBUTTON_FPS_GLANCER 0x0900440B /* Glance Right */
3430 #define DIBUTTON_FPS_FIRESECONDARY 0x0900440C /* Alternative fire button */
3431 #define DIBUTTON_FPS_ROTATE_LEFT_LINK 0x0900C4E4 /* Fallback rotate left button */
3432 #define DIBUTTON_FPS_ROTATE_RIGHT_LINK 0x0900C4EC /* Fallback rotate right button */
3433 #define DIBUTTON_FPS_FORWARD_LINK 0x090144E0 /* Fallback forward button */
3434 #define DIBUTTON_FPS_BACKWARD_LINK 0x090144E8 /* Fallback backward button */
3435 #define DIBUTTON_FPS_GLANCE_UP_LINK 0x0901C4E0 /* Fallback look up button */
3436 #define DIBUTTON_FPS_GLANCE_DOWN_LINK 0x0901C4E8 /* Fallback look down button */
3437 #define DIBUTTON_FPS_STEP_LEFT_LINK 0x090244E4 /* Fallback step left button */
3438 #define DIBUTTON_FPS_STEP_RIGHT_LINK 0x090244EC /* Fallback step right button */
3439 #define DIBUTTON_FPS_DEVICE 0x090044FE /* Show input device and controls */
3440 #define DIBUTTON_FPS_PAUSE 0x090044FC /* Start / Pause / Restart game */
3442 /*--- Fighting - Third Person action
3443 Perspective of camera is behind the main character ---*/
3444 #define DIVIRTUAL_FIGHTING_THIRDPERSON 0x0A000000
3445 #define DIAXIS_TPS_TURN 0x0A020201 /* Turn left/right */
3446 #define DIAXIS_TPS_MOVE 0x0A010202 /* Move forward/backward */
3447 #define DIBUTTON_TPS_RUN 0x0A000401 /* Run or walk toggle switch */
3448 #define DIBUTTON_TPS_ACTION 0x0A000402 /* Action Button */
3449 #define DIBUTTON_TPS_SELECT 0x0A000403 /* Select next weapon */
3450 #define DIBUTTON_TPS_USE 0x0A000404 /* Use inventory item currently selected */
3451 #define DIBUTTON_TPS_JUMP 0x0A000405 /* Character Jumps */
3452 #define DIBUTTON_TPS_MENU 0x0A0004FD /* Show menu options */
3453 /*--- Priority 2 controls ---*/
3455 #define DIHATSWITCH_TPS_GLANCE 0x0A004601 /* Look around */
3456 #define DIBUTTON_TPS_VIEW 0x0A004406 /* Select camera view */
3457 #define DIBUTTON_TPS_STEPLEFT 0x0A004407 /* Character takes a left step */
3458 #define DIBUTTON_TPS_STEPRIGHT 0x0A004408 /* Character takes a right step */
3459 #define DIAXIS_TPS_STEP 0x0A00C203 /* Character steps left/right */
3460 #define DIBUTTON_TPS_DODGE 0x0A004409 /* Character dodges or ducks */
3461 #define DIBUTTON_TPS_INVENTORY 0x0A00440A /* Cycle through inventory */
3462 #define DIBUTTON_TPS_TURN_LEFT_LINK 0x0A0244E4 /* Fallback turn left button */
3463 #define DIBUTTON_TPS_TURN_RIGHT_LINK 0x0A0244EC /* Fallback turn right button */
3464 #define DIBUTTON_TPS_FORWARD_LINK 0x0A0144E0 /* Fallback forward button */
3465 #define DIBUTTON_TPS_BACKWARD_LINK 0x0A0144E8 /* Fallback backward button */
3466 #define DIBUTTON_TPS_GLANCE_UP_LINK 0x0A07C4E0 /* Fallback look up button */
3467 #define DIBUTTON_TPS_GLANCE_DOWN_LINK 0x0A07C4E8 /* Fallback look down button */
3468 #define DIBUTTON_TPS_GLANCE_LEFT_LINK 0x0A07C4E4 /* Fallback glance up button */
3469 #define DIBUTTON_TPS_GLANCE_RIGHT_LINK 0x0A07C4EC /* Fallback glance right button */
3470 #define DIBUTTON_TPS_DEVICE 0x0A0044FE /* Show input device and controls */
3471 #define DIBUTTON_TPS_PAUSE 0x0A0044FC /* Start / Pause / Restart game */
3473 /*--- Strategy - Role Playing
3474 Navigation and problem solving are primary actions ---*/
3475 #define DIVIRTUAL_STRATEGY_ROLEPLAYING 0x0B000000
3476 #define DIAXIS_STRATEGYR_LATERAL 0x0B008201 /* sidestep - left/right */
3477 #define DIAXIS_STRATEGYR_MOVE 0x0B010202 /* move forward/backward */
3478 #define DIBUTTON_STRATEGYR_GET 0x0B000401 /* Acquire item */
3479 #define DIBUTTON_STRATEGYR_APPLY 0x0B000402 /* Use selected item */
3480 #define DIBUTTON_STRATEGYR_SELECT 0x0B000403 /* Select nextitem */
3481 #define DIBUTTON_STRATEGYR_ATTACK 0x0B000404 /* Attack */
3482 #define DIBUTTON_STRATEGYR_CAST 0x0B000405 /* Cast Spell */
3483 #define DIBUTTON_STRATEGYR_CROUCH 0x0B000406 /* Crouch */
3484 #define DIBUTTON_STRATEGYR_JUMP 0x0B000407 /* Jump */
3485 #define DIBUTTON_STRATEGYR_MENU 0x0B0004FD /* Show menu options */
3486 /*--- Priority 2 controls ---*/
3488 #define DIHATSWITCH_STRATEGYR_GLANCE 0x0B004601 /* Look around */
3489 #define DIBUTTON_STRATEGYR_MAP 0x0B004408 /* Cycle through map options */
3490 #define DIBUTTON_STRATEGYR_DISPLAY 0x0B004409 /* Shows next on-screen display option */
3491 #define DIAXIS_STRATEGYR_ROTATE 0x0B024203 /* Turn body left/right */
3492 #define DIBUTTON_STRATEGYR_LEFT_LINK 0x0B00C4E4 /* Fallback sidestep left button */
3493 #define DIBUTTON_STRATEGYR_RIGHT_LINK 0x0B00C4EC /* Fallback sidestep right button */
3494 #define DIBUTTON_STRATEGYR_FORWARD_LINK 0x0B0144E0 /* Fallback move forward button */
3495 #define DIBUTTON_STRATEGYR_BACK_LINK 0x0B0144E8 /* Fallback move backward button */
3496 #define DIBUTTON_STRATEGYR_ROTATE_LEFT_LINK 0x0B0244E4 /* Fallback turn body left button */
3497 #define DIBUTTON_STRATEGYR_ROTATE_RIGHT_LINK 0x0B0244EC /* Fallback turn body right button */
3498 #define DIBUTTON_STRATEGYR_DEVICE 0x0B0044FE /* Show input device and controls */
3499 #define DIBUTTON_STRATEGYR_PAUSE 0x0B0044FC /* Start / Pause / Restart game */
3501 /*--- Strategy - Turn based
3502 Navigation and problem solving are primary actions ---*/
3503 #define DIVIRTUAL_STRATEGY_TURN 0x0C000000
3504 #define DIAXIS_STRATEGYT_LATERAL 0x0C008201 /* Sidestep left/right */
3505 #define DIAXIS_STRATEGYT_MOVE 0x0C010202 /* Move forward/backwards */
3506 #define DIBUTTON_STRATEGYT_SELECT 0x0C000401 /* Select unit or object */
3507 #define DIBUTTON_STRATEGYT_INSTRUCT 0x0C000402 /* Cycle through instructions */
3508 #define DIBUTTON_STRATEGYT_APPLY 0x0C000403 /* Apply selected instruction */
3509 #define DIBUTTON_STRATEGYT_TEAM 0x0C000404 /* Select next team / cycle through all */
3510 #define DIBUTTON_STRATEGYT_TURN 0x0C000405 /* Indicate turn over */
3511 #define DIBUTTON_STRATEGYT_MENU 0x0C0004FD /* Show menu options */
3512 /*--- Priority 2 controls ---*/
3514 #define DIBUTTON_STRATEGYT_ZOOM 0x0C004406 /* Zoom - in / out */
3515 #define DIBUTTON_STRATEGYT_MAP 0x0C004407 /* cycle through map options */
3516 #define DIBUTTON_STRATEGYT_DISPLAY 0x0C004408 /* shows next on-screen display options */
3517 #define DIBUTTON_STRATEGYT_LEFT_LINK 0x0C00C4E4 /* Fallback sidestep left button */
3518 #define DIBUTTON_STRATEGYT_RIGHT_LINK 0x0C00C4EC /* Fallback sidestep right button */
3519 #define DIBUTTON_STRATEGYT_FORWARD_LINK 0x0C0144E0 /* Fallback move forward button */
3520 #define DIBUTTON_STRATEGYT_BACK_LINK 0x0C0144E8 /* Fallback move back button */
3521 #define DIBUTTON_STRATEGYT_DEVICE 0x0C0044FE /* Show input device and controls */
3522 #define DIBUTTON_STRATEGYT_PAUSE 0x0C0044FC /* Start / Pause / Restart game */
3524 /*--- Sports - Hunting
3525 Hunting ---*/
3526 #define DIVIRTUAL_SPORTS_HUNTING 0x0D000000
3527 #define DIAXIS_HUNTING_LATERAL 0x0D008201 /* sidestep left/right */
3528 #define DIAXIS_HUNTING_MOVE 0x0D010202 /* move forward/backwards */
3529 #define DIBUTTON_HUNTING_FIRE 0x0D000401 /* Fire selected weapon */
3530 #define DIBUTTON_HUNTING_AIM 0x0D000402 /* Select aim/move */
3531 #define DIBUTTON_HUNTING_WEAPON 0x0D000403 /* Select next weapon */
3532 #define DIBUTTON_HUNTING_BINOCULAR 0x0D000404 /* Look through Binoculars */
3533 #define DIBUTTON_HUNTING_CALL 0x0D000405 /* Make animal call */
3534 #define DIBUTTON_HUNTING_MAP 0x0D000406 /* View Map */
3535 #define DIBUTTON_HUNTING_SPECIAL 0x0D000407 /* Special game operation */
3536 #define DIBUTTON_HUNTING_MENU 0x0D0004FD /* Show menu options */
3537 /*--- Priority 2 controls ---*/
3539 #define DIHATSWITCH_HUNTING_GLANCE 0x0D004601 /* Look around */
3540 #define DIBUTTON_HUNTING_DISPLAY 0x0D004408 /* show next on-screen display option */
3541 #define DIAXIS_HUNTING_ROTATE 0x0D024203 /* Turn body left/right */
3542 #define DIBUTTON_HUNTING_CROUCH 0x0D004409 /* Crouch/ Climb / Swim down */
3543 #define DIBUTTON_HUNTING_JUMP 0x0D00440A /* Jump/ Climb up / Swim up */
3544 #define DIBUTTON_HUNTING_FIRESECONDARY 0x0D00440B /* Alternative fire button */
3545 #define DIBUTTON_HUNTING_LEFT_LINK 0x0D00C4E4 /* Fallback sidestep left button */
3546 #define DIBUTTON_HUNTING_RIGHT_LINK 0x0D00C4EC /* Fallback sidestep right button */
3547 #define DIBUTTON_HUNTING_FORWARD_LINK 0x0D0144E0 /* Fallback move forward button */
3548 #define DIBUTTON_HUNTING_BACK_LINK 0x0D0144E8 /* Fallback move back button */
3549 #define DIBUTTON_HUNTING_ROTATE_LEFT_LINK 0x0D0244E4 /* Fallback turn body left button */
3550 #define DIBUTTON_HUNTING_ROTATE_RIGHT_LINK 0x0D0244EC /* Fallback turn body right button */
3551 #define DIBUTTON_HUNTING_DEVICE 0x0D0044FE /* Show input device and controls */
3552 #define DIBUTTON_HUNTING_PAUSE 0x0D0044FC /* Start / Pause / Restart game */
3554 /*--- Sports - Fishing
3555 Catching Fish is primary objective ---*/
3556 #define DIVIRTUAL_SPORTS_FISHING 0x0E000000
3557 #define DIAXIS_FISHING_LATERAL 0x0E008201 /* sidestep left/right */
3558 #define DIAXIS_FISHING_MOVE 0x0E010202 /* move forward/backwards */
3559 #define DIBUTTON_FISHING_CAST 0x0E000401 /* Cast line */
3560 #define DIBUTTON_FISHING_TYPE 0x0E000402 /* Select cast type */
3561 #define DIBUTTON_FISHING_BINOCULAR 0x0E000403 /* Look through Binocular */
3562 #define DIBUTTON_FISHING_BAIT 0x0E000404 /* Select type of Bait */
3563 #define DIBUTTON_FISHING_MAP 0x0E000405 /* View Map */
3564 #define DIBUTTON_FISHING_MENU 0x0E0004FD /* Show menu options */
3565 /*--- Priority 2 controls ---*/
3567 #define DIHATSWITCH_FISHING_GLANCE 0x0E004601 /* Look around */
3568 #define DIBUTTON_FISHING_DISPLAY 0x0E004406 /* Show next on-screen display option */
3569 #define DIAXIS_FISHING_ROTATE 0x0E024203 /* Turn character left / right */
3570 #define DIBUTTON_FISHING_CROUCH 0x0E004407 /* Crouch/ Climb / Swim down */
3571 #define DIBUTTON_FISHING_JUMP 0x0E004408 /* Jump/ Climb up / Swim up */
3572 #define DIBUTTON_FISHING_LEFT_LINK 0x0E00C4E4 /* Fallback sidestep left button */
3573 #define DIBUTTON_FISHING_RIGHT_LINK 0x0E00C4EC /* Fallback sidestep right button */
3574 #define DIBUTTON_FISHING_FORWARD_LINK 0x0E0144E0 /* Fallback move forward button */
3575 #define DIBUTTON_FISHING_BACK_LINK 0x0E0144E8 /* Fallback move back button */
3576 #define DIBUTTON_FISHING_ROTATE_LEFT_LINK 0x0E0244E4 /* Fallback turn body left button */
3577 #define DIBUTTON_FISHING_ROTATE_RIGHT_LINK 0x0E0244EC /* Fallback turn body right button */
3578 #define DIBUTTON_FISHING_DEVICE 0x0E0044FE /* Show input device and controls */
3579 #define DIBUTTON_FISHING_PAUSE 0x0E0044FC /* Start / Pause / Restart game */
3581 /*--- Sports - Baseball - Batting
3582 Batter control is primary objective ---*/
3583 #define DIVIRTUAL_SPORTS_BASEBALL_BAT 0x0F000000
3584 #define DIAXIS_BASEBALLB_LATERAL 0x0F008201 /* Aim left / right */
3585 #define DIAXIS_BASEBALLB_MOVE 0x0F010202 /* Aim up / down */
3586 #define DIBUTTON_BASEBALLB_SELECT 0x0F000401 /* cycle through swing options */
3587 #define DIBUTTON_BASEBALLB_NORMAL 0x0F000402 /* normal swing */
3588 #define DIBUTTON_BASEBALLB_POWER 0x0F000403 /* swing for the fence */
3589 #define DIBUTTON_BASEBALLB_BUNT 0x0F000404 /* bunt */
3590 #define DIBUTTON_BASEBALLB_STEAL 0x0F000405 /* Base runner attempts to steal a base */
3591 #define DIBUTTON_BASEBALLB_BURST 0x0F000406 /* Base runner invokes burst of speed */
3592 #define DIBUTTON_BASEBALLB_SLIDE 0x0F000407 /* Base runner slides into base */
3593 #define DIBUTTON_BASEBALLB_CONTACT 0x0F000408 /* Contact swing */
3594 #define DIBUTTON_BASEBALLB_MENU 0x0F0004FD /* Show menu options */
3595 /*--- Priority 2 controls ---*/
3597 #define DIBUTTON_BASEBALLB_NOSTEAL 0x0F004409 /* Base runner goes back to a base */
3598 #define DIBUTTON_BASEBALLB_BOX 0x0F00440A /* Enter or exit batting box */
3599 #define DIBUTTON_BASEBALLB_LEFT_LINK 0x0F00C4E4 /* Fallback sidestep left button */
3600 #define DIBUTTON_BASEBALLB_RIGHT_LINK 0x0F00C4EC /* Fallback sidestep right button */
3601 #define DIBUTTON_BASEBALLB_FORWARD_LINK 0x0F0144E0 /* Fallback move forward button */
3602 #define DIBUTTON_BASEBALLB_BACK_LINK 0x0F0144E8 /* Fallback move back button */
3603 #define DIBUTTON_BASEBALLB_DEVICE 0x0F0044FE /* Show input device and controls */
3604 #define DIBUTTON_BASEBALLB_PAUSE 0x0F0044FC /* Start / Pause / Restart game */
3606 /*--- Sports - Baseball - Pitching
3607 Pitcher control is primary objective ---*/
3608 #define DIVIRTUAL_SPORTS_BASEBALL_PITCH 0x10000000
3609 #define DIAXIS_BASEBALLP_LATERAL 0x10008201 /* Aim left / right */
3610 #define DIAXIS_BASEBALLP_MOVE 0x10010202 /* Aim up / down */
3611 #define DIBUTTON_BASEBALLP_SELECT 0x10000401 /* cycle through pitch selections */
3612 #define DIBUTTON_BASEBALLP_PITCH 0x10000402 /* throw pitch */
3613 #define DIBUTTON_BASEBALLP_BASE 0x10000403 /* select base to throw to */
3614 #define DIBUTTON_BASEBALLP_THROW 0x10000404 /* throw to base */
3615 #define DIBUTTON_BASEBALLP_FAKE 0x10000405 /* Fake a throw to a base */
3616 #define DIBUTTON_BASEBALLP_MENU 0x100004FD /* Show menu options */
3617 /*--- Priority 2 controls ---*/
3619 #define DIBUTTON_BASEBALLP_WALK 0x10004406 /* Throw intentional walk / pitch out */
3620 #define DIBUTTON_BASEBALLP_LOOK 0x10004407 /* Look at runners on bases */
3621 #define DIBUTTON_BASEBALLP_LEFT_LINK 0x1000C4E4 /* Fallback sidestep left button */
3622 #define DIBUTTON_BASEBALLP_RIGHT_LINK 0x1000C4EC /* Fallback sidestep right button */
3623 #define DIBUTTON_BASEBALLP_FORWARD_LINK 0x100144E0 /* Fallback move forward button */
3624 #define DIBUTTON_BASEBALLP_BACK_LINK 0x100144E8 /* Fallback move back button */
3625 #define DIBUTTON_BASEBALLP_DEVICE 0x100044FE /* Show input device and controls */
3626 #define DIBUTTON_BASEBALLP_PAUSE 0x100044FC /* Start / Pause / Restart game */
3628 /*--- Sports - Baseball - Fielding
3629 Fielder control is primary objective ---*/
3630 #define DIVIRTUAL_SPORTS_BASEBALL_FIELD 0x11000000
3631 #define DIAXIS_BASEBALLF_LATERAL 0x11008201 /* Aim left / right */
3632 #define DIAXIS_BASEBALLF_MOVE 0x11010202 /* Aim up / down */
3633 #define DIBUTTON_BASEBALLF_NEAREST 0x11000401 /* Switch to fielder nearest to the ball */
3634 #define DIBUTTON_BASEBALLF_THROW1 0x11000402 /* Make conservative throw */
3635 #define DIBUTTON_BASEBALLF_THROW2 0x11000403 /* Make aggressive throw */
3636 #define DIBUTTON_BASEBALLF_BURST 0x11000404 /* Invoke burst of speed */
3637 #define DIBUTTON_BASEBALLF_JUMP 0x11000405 /* Jump to catch ball */
3638 #define DIBUTTON_BASEBALLF_DIVE 0x11000406 /* Dive to catch ball */
3639 #define DIBUTTON_BASEBALLF_MENU 0x110004FD /* Show menu options */
3640 /*--- Priority 2 controls ---*/
3642 #define DIBUTTON_BASEBALLF_SHIFTIN 0x11004407 /* Shift the infield positioning */
3643 #define DIBUTTON_BASEBALLF_SHIFTOUT 0x11004408 /* Shift the outfield positioning */
3644 #define DIBUTTON_BASEBALLF_AIM_LEFT_LINK 0x1100C4E4 /* Fallback aim left button */
3645 #define DIBUTTON_BASEBALLF_AIM_RIGHT_LINK 0x1100C4EC /* Fallback aim right button */
3646 #define DIBUTTON_BASEBALLF_FORWARD_LINK 0x110144E0 /* Fallback move forward button */
3647 #define DIBUTTON_BASEBALLF_BACK_LINK 0x110144E8 /* Fallback move back button */
3648 #define DIBUTTON_BASEBALLF_DEVICE 0x110044FE /* Show input device and controls */
3649 #define DIBUTTON_BASEBALLF_PAUSE 0x110044FC /* Start / Pause / Restart game */
3651 /*--- Sports - Basketball - Offense
3652 Offense ---*/
3653 #define DIVIRTUAL_SPORTS_BASKETBALL_OFFENSE 0x12000000
3654 #define DIAXIS_BBALLO_LATERAL 0x12008201 /* left / right */
3655 #define DIAXIS_BBALLO_MOVE 0x12010202 /* up / down */
3656 #define DIBUTTON_BBALLO_SHOOT 0x12000401 /* shoot basket */
3657 #define DIBUTTON_BBALLO_DUNK 0x12000402 /* dunk basket */
3658 #define DIBUTTON_BBALLO_PASS 0x12000403 /* throw pass */
3659 #define DIBUTTON_BBALLO_FAKE 0x12000404 /* fake shot or pass */
3660 #define DIBUTTON_BBALLO_SPECIAL 0x12000405 /* apply special move */
3661 #define DIBUTTON_BBALLO_PLAYER 0x12000406 /* select next player */
3662 #define DIBUTTON_BBALLO_BURST 0x12000407 /* invoke burst */
3663 #define DIBUTTON_BBALLO_CALL 0x12000408 /* call for ball / pass to me */
3664 #define DIBUTTON_BBALLO_MENU 0x120004FD /* Show menu options */
3665 /*--- Priority 2 controls ---*/
3667 #define DIHATSWITCH_BBALLO_GLANCE 0x12004601 /* scroll view */
3668 #define DIBUTTON_BBALLO_SCREEN 0x12004409 /* Call for screen */
3669 #define DIBUTTON_BBALLO_PLAY 0x1200440A /* Call for specific offensive play */
3670 #define DIBUTTON_BBALLO_JAB 0x1200440B /* Initiate fake drive to basket */
3671 #define DIBUTTON_BBALLO_POST 0x1200440C /* Perform post move */
3672 #define DIBUTTON_BBALLO_TIMEOUT 0x1200440D /* Time Out */
3673 #define DIBUTTON_BBALLO_SUBSTITUTE 0x1200440E /* substitute one player for another */
3674 #define DIBUTTON_BBALLO_LEFT_LINK 0x1200C4E4 /* Fallback sidestep left button */
3675 #define DIBUTTON_BBALLO_RIGHT_LINK 0x1200C4EC /* Fallback sidestep right button */
3676 #define DIBUTTON_BBALLO_FORWARD_LINK 0x120144E0 /* Fallback move forward button */
3677 #define DIBUTTON_BBALLO_BACK_LINK 0x120144E8 /* Fallback move back button */
3678 #define DIBUTTON_BBALLO_DEVICE 0x120044FE /* Show input device and controls */
3679 #define DIBUTTON_BBALLO_PAUSE 0x120044FC /* Start / Pause / Restart game */
3681 /*--- Sports - Basketball - Defense
3682 Defense ---*/
3683 #define DIVIRTUAL_SPORTS_BASKETBALL_DEFENSE 0x13000000
3684 #define DIAXIS_BBALLD_LATERAL 0x13008201 /* left / right */
3685 #define DIAXIS_BBALLD_MOVE 0x13010202 /* up / down */
3686 #define DIBUTTON_BBALLD_JUMP 0x13000401 /* jump to block shot */
3687 #define DIBUTTON_BBALLD_STEAL 0x13000402 /* attempt to steal ball */
3688 #define DIBUTTON_BBALLD_FAKE 0x13000403 /* fake block or steal */
3689 #define DIBUTTON_BBALLD_SPECIAL 0x13000404 /* apply special move */
3690 #define DIBUTTON_BBALLD_PLAYER 0x13000405 /* select next player */
3691 #define DIBUTTON_BBALLD_BURST 0x13000406 /* invoke burst */
3692 #define DIBUTTON_BBALLD_PLAY 0x13000407 /* call for specific defensive play */
3693 #define DIBUTTON_BBALLD_MENU 0x130004FD /* Show menu options */
3694 /*--- Priority 2 controls ---*/
3696 #define DIHATSWITCH_BBALLD_GLANCE 0x13004601 /* scroll view */
3697 #define DIBUTTON_BBALLD_TIMEOUT 0x13004408 /* Time Out */
3698 #define DIBUTTON_BBALLD_SUBSTITUTE 0x13004409 /* substitute one player for another */
3699 #define DIBUTTON_BBALLD_LEFT_LINK 0x1300C4E4 /* Fallback sidestep left button */
3700 #define DIBUTTON_BBALLD_RIGHT_LINK 0x1300C4EC /* Fallback sidestep right button */
3701 #define DIBUTTON_BBALLD_FORWARD_LINK 0x130144E0 /* Fallback move forward button */
3702 #define DIBUTTON_BBALLD_BACK_LINK 0x130144E8 /* Fallback move back button */
3703 #define DIBUTTON_BBALLD_DEVICE 0x130044FE /* Show input device and controls */
3704 #define DIBUTTON_BBALLD_PAUSE 0x130044FC /* Start / Pause / Restart game */
3706 /*--- Sports - Football - Play
3707 Play selection ---*/
3708 #define DIVIRTUAL_SPORTS_FOOTBALL_FIELD 0x14000000
3709 #define DIBUTTON_FOOTBALLP_PLAY 0x14000401 /* cycle through available plays */
3710 #define DIBUTTON_FOOTBALLP_SELECT 0x14000402 /* select play */
3711 #define DIBUTTON_FOOTBALLP_HELP 0x14000403 /* Bring up pop-up help */
3712 #define DIBUTTON_FOOTBALLP_MENU 0x140004FD /* Show menu options */
3713 /*--- Priority 2 controls ---*/
3715 #define DIBUTTON_FOOTBALLP_DEVICE 0x140044FE /* Show input device and controls */
3716 #define DIBUTTON_FOOTBALLP_PAUSE 0x140044FC /* Start / Pause / Restart game */
3718 /*--- Sports - Football - QB
3719 Offense: Quarterback / Kicker ---*/
3720 #define DIVIRTUAL_SPORTS_FOOTBALL_QBCK 0x15000000
3721 #define DIAXIS_FOOTBALLQ_LATERAL 0x15008201 /* Move / Aim: left / right */
3722 #define DIAXIS_FOOTBALLQ_MOVE 0x15010202 /* Move / Aim: up / down */
3723 #define DIBUTTON_FOOTBALLQ_SELECT 0x15000401 /* Select */
3724 #define DIBUTTON_FOOTBALLQ_SNAP 0x15000402 /* snap ball - start play */
3725 #define DIBUTTON_FOOTBALLQ_JUMP 0x15000403 /* jump over defender */
3726 #define DIBUTTON_FOOTBALLQ_SLIDE 0x15000404 /* Dive/Slide */
3727 #define DIBUTTON_FOOTBALLQ_PASS 0x15000405 /* throws pass to receiver */
3728 #define DIBUTTON_FOOTBALLQ_FAKE 0x15000406 /* pump fake pass or fake kick */
3729 #define DIBUTTON_FOOTBALLQ_MENU 0x150004FD /* Show menu options */
3730 /*--- Priority 2 controls ---*/
3732 #define DIBUTTON_FOOTBALLQ_FAKESNAP 0x15004407 /* Fake snap */
3733 #define DIBUTTON_FOOTBALLQ_MOTION 0x15004408 /* Send receivers in motion */
3734 #define DIBUTTON_FOOTBALLQ_AUDIBLE 0x15004409 /* Change offensive play at line of scrimmage */
3735 #define DIBUTTON_FOOTBALLQ_LEFT_LINK 0x1500C4E4 /* Fallback sidestep left button */
3736 #define DIBUTTON_FOOTBALLQ_RIGHT_LINK 0x1500C4EC /* Fallback sidestep right button */
3737 #define DIBUTTON_FOOTBALLQ_FORWARD_LINK 0x150144E0 /* Fallback move forward button */
3738 #define DIBUTTON_FOOTBALLQ_BACK_LINK 0x150144E8 /* Fallback move back button */
3739 #define DIBUTTON_FOOTBALLQ_DEVICE 0x150044FE /* Show input device and controls */
3740 #define DIBUTTON_FOOTBALLQ_PAUSE 0x150044FC /* Start / Pause / Restart game */
3742 /*--- Sports - Football - Offense
3743 Offense - Runner ---*/
3744 #define DIVIRTUAL_SPORTS_FOOTBALL_OFFENSE 0x16000000
3745 #define DIAXIS_FOOTBALLO_LATERAL 0x16008201 /* Move / Aim: left / right */
3746 #define DIAXIS_FOOTBALLO_MOVE 0x16010202 /* Move / Aim: up / down */
3747 #define DIBUTTON_FOOTBALLO_JUMP 0x16000401 /* jump or hurdle over defender */
3748 #define DIBUTTON_FOOTBALLO_LEFTARM 0x16000402 /* holds out left arm */
3749 #define DIBUTTON_FOOTBALLO_RIGHTARM 0x16000403 /* holds out right arm */
3750 #define DIBUTTON_FOOTBALLO_THROW 0x16000404 /* throw pass or lateral ball to another runner */
3751 #define DIBUTTON_FOOTBALLO_SPIN 0x16000405 /* Spin to avoid defenders */
3752 #define DIBUTTON_FOOTBALLO_MENU 0x160004FD /* Show menu options */
3753 /*--- Priority 2 controls ---*/
3755 #define DIBUTTON_FOOTBALLO_JUKE 0x16004406 /* Use special move to avoid defenders */
3756 #define DIBUTTON_FOOTBALLO_SHOULDER 0x16004407 /* Lower shoulder to run over defenders */
3757 #define DIBUTTON_FOOTBALLO_TURBO 0x16004408 /* Speed burst past defenders */
3758 #define DIBUTTON_FOOTBALLO_DIVE 0x16004409 /* Dive over defenders */
3759 #define DIBUTTON_FOOTBALLO_ZOOM 0x1600440A /* Zoom view in / out */
3760 #define DIBUTTON_FOOTBALLO_SUBSTITUTE 0x1600440B /* substitute one player for another */
3761 #define DIBUTTON_FOOTBALLO_LEFT_LINK 0x1600C4E4 /* Fallback sidestep left button */
3762 #define DIBUTTON_FOOTBALLO_RIGHT_LINK 0x1600C4EC /* Fallback sidestep right button */
3763 #define DIBUTTON_FOOTBALLO_FORWARD_LINK 0x160144E0 /* Fallback move forward button */
3764 #define DIBUTTON_FOOTBALLO_BACK_LINK 0x160144E8 /* Fallback move back button */
3765 #define DIBUTTON_FOOTBALLO_DEVICE 0x160044FE /* Show input device and controls */
3766 #define DIBUTTON_FOOTBALLO_PAUSE 0x160044FC /* Start / Pause / Restart game */
3768 /*--- Sports - Football - Defense
3769 Defense ---*/
3770 #define DIVIRTUAL_SPORTS_FOOTBALL_DEFENSE 0x17000000
3771 #define DIAXIS_FOOTBALLD_LATERAL 0x17008201 /* Move / Aim: left / right */
3772 #define DIAXIS_FOOTBALLD_MOVE 0x17010202 /* Move / Aim: up / down */
3773 #define DIBUTTON_FOOTBALLD_PLAY 0x17000401 /* cycle through available plays */
3774 #define DIBUTTON_FOOTBALLD_SELECT 0x17000402 /* select player closest to the ball */
3775 #define DIBUTTON_FOOTBALLD_JUMP 0x17000403 /* jump to intercept or block */
3776 #define DIBUTTON_FOOTBALLD_TACKLE 0x17000404 /* tackler runner */
3777 #define DIBUTTON_FOOTBALLD_FAKE 0x17000405 /* hold down to fake tackle or intercept */
3778 #define DIBUTTON_FOOTBALLD_SUPERTACKLE 0x17000406 /* Initiate special tackle */
3779 #define DIBUTTON_FOOTBALLD_MENU 0x170004FD /* Show menu options */
3780 /*--- Priority 2 controls ---*/
3782 #define DIBUTTON_FOOTBALLD_SPIN 0x17004407 /* Spin to beat offensive line */
3783 #define DIBUTTON_FOOTBALLD_SWIM 0x17004408 /* Swim to beat the offensive line */
3784 #define DIBUTTON_FOOTBALLD_BULLRUSH 0x17004409 /* Bull rush the offensive line */
3785 #define DIBUTTON_FOOTBALLD_RIP 0x1700440A /* Rip the offensive line */
3786 #define DIBUTTON_FOOTBALLD_AUDIBLE 0x1700440B /* Change defensive play at the line of scrimmage */
3787 #define DIBUTTON_FOOTBALLD_ZOOM 0x1700440C /* Zoom view in / out */
3788 #define DIBUTTON_FOOTBALLD_SUBSTITUTE 0x1700440D /* substitute one player for another */
3789 #define DIBUTTON_FOOTBALLD_LEFT_LINK 0x1700C4E4 /* Fallback sidestep left button */
3790 #define DIBUTTON_FOOTBALLD_RIGHT_LINK 0x1700C4EC /* Fallback sidestep right button */
3791 #define DIBUTTON_FOOTBALLD_FORWARD_LINK 0x170144E0 /* Fallback move forward button */
3792 #define DIBUTTON_FOOTBALLD_BACK_LINK 0x170144E8 /* Fallback move back button */
3793 #define DIBUTTON_FOOTBALLD_DEVICE 0x170044FE /* Show input device and controls */
3794 #define DIBUTTON_FOOTBALLD_PAUSE 0x170044FC /* Start / Pause / Restart game */
3796 /*--- Sports - Golf
3797 ---*/
3798 #define DIVIRTUAL_SPORTS_GOLF 0x18000000
3799 #define DIAXIS_GOLF_LATERAL 0x18008201 /* Move / Aim: left / right */
3800 #define DIAXIS_GOLF_MOVE 0x18010202 /* Move / Aim: up / down */
3801 #define DIBUTTON_GOLF_SWING 0x18000401 /* swing club */
3802 #define DIBUTTON_GOLF_SELECT 0x18000402 /* cycle between: club / swing strength / ball arc / ball spin */
3803 #define DIBUTTON_GOLF_UP 0x18000403 /* increase selection */
3804 #define DIBUTTON_GOLF_DOWN 0x18000404 /* decrease selection */
3805 #define DIBUTTON_GOLF_TERRAIN 0x18000405 /* shows terrain detail */
3806 #define DIBUTTON_GOLF_FLYBY 0x18000406 /* view the hole via a flyby */
3807 #define DIBUTTON_GOLF_MENU 0x180004FD /* Show menu options */
3808 /*--- Priority 2 controls ---*/
3810 #define DIHATSWITCH_GOLF_SCROLL 0x18004601 /* scroll view */
3811 #define DIBUTTON_GOLF_ZOOM 0x18004407 /* Zoom view in / out */
3812 #define DIBUTTON_GOLF_TIMEOUT 0x18004408 /* Call for time out */
3813 #define DIBUTTON_GOLF_SUBSTITUTE 0x18004409 /* substitute one player for another */
3814 #define DIBUTTON_GOLF_LEFT_LINK 0x1800C4E4 /* Fallback sidestep left button */
3815 #define DIBUTTON_GOLF_RIGHT_LINK 0x1800C4EC /* Fallback sidestep right button */
3816 #define DIBUTTON_GOLF_FORWARD_LINK 0x180144E0 /* Fallback move forward button */
3817 #define DIBUTTON_GOLF_BACK_LINK 0x180144E8 /* Fallback move back button */
3818 #define DIBUTTON_GOLF_DEVICE 0x180044FE /* Show input device and controls */
3819 #define DIBUTTON_GOLF_PAUSE 0x180044FC /* Start / Pause / Restart game */
3821 /*--- Sports - Hockey - Offense
3822 Offense ---*/
3823 #define DIVIRTUAL_SPORTS_HOCKEY_OFFENSE 0x19000000
3824 #define DIAXIS_HOCKEYO_LATERAL 0x19008201 /* Move / Aim: left / right */
3825 #define DIAXIS_HOCKEYO_MOVE 0x19010202 /* Move / Aim: up / down */
3826 #define DIBUTTON_HOCKEYO_SHOOT 0x19000401 /* Shoot */
3827 #define DIBUTTON_HOCKEYO_PASS 0x19000402 /* pass the puck */
3828 #define DIBUTTON_HOCKEYO_BURST 0x19000403 /* invoke speed burst */
3829 #define DIBUTTON_HOCKEYO_SPECIAL 0x19000404 /* invoke special move */
3830 #define DIBUTTON_HOCKEYO_FAKE 0x19000405 /* hold down to fake pass or kick */
3831 #define DIBUTTON_HOCKEYO_MENU 0x190004FD /* Show menu options */
3832 /*--- Priority 2 controls ---*/
3834 #define DIHATSWITCH_HOCKEYO_SCROLL 0x19004601 /* scroll view */
3835 #define DIBUTTON_HOCKEYO_ZOOM 0x19004406 /* Zoom view in / out */
3836 #define DIBUTTON_HOCKEYO_STRATEGY 0x19004407 /* Invoke coaching menu for strategy help */
3837 #define DIBUTTON_HOCKEYO_TIMEOUT 0x19004408 /* Call for time out */
3838 #define DIBUTTON_HOCKEYO_SUBSTITUTE 0x19004409 /* substitute one player for another */
3839 #define DIBUTTON_HOCKEYO_LEFT_LINK 0x1900C4E4 /* Fallback sidestep left button */
3840 #define DIBUTTON_HOCKEYO_RIGHT_LINK 0x1900C4EC /* Fallback sidestep right button */
3841 #define DIBUTTON_HOCKEYO_FORWARD_LINK 0x190144E0 /* Fallback move forward button */
3842 #define DIBUTTON_HOCKEYO_BACK_LINK 0x190144E8 /* Fallback move back button */
3843 #define DIBUTTON_HOCKEYO_DEVICE 0x190044FE /* Show input device and controls */
3844 #define DIBUTTON_HOCKEYO_PAUSE 0x190044FC /* Start / Pause / Restart game */
3846 /*--- Sports - Hockey - Defense
3847 Defense ---*/
3848 #define DIVIRTUAL_SPORTS_HOCKEY_DEFENSE 0x1A000000
3849 #define DIAXIS_HOCKEYD_LATERAL 0x1A008201 /* Move / Aim: left / right */
3850 #define DIAXIS_HOCKEYD_MOVE 0x1A010202 /* Move / Aim: up / down */
3851 #define DIBUTTON_HOCKEYD_PLAYER 0x1A000401 /* control player closest to the puck */
3852 #define DIBUTTON_HOCKEYD_STEAL 0x1A000402 /* attempt steal */
3853 #define DIBUTTON_HOCKEYD_BURST 0x1A000403 /* speed burst or body check */
3854 #define DIBUTTON_HOCKEYD_BLOCK 0x1A000404 /* block puck */
3855 #define DIBUTTON_HOCKEYD_FAKE 0x1A000405 /* hold down to fake tackle or intercept */
3856 #define DIBUTTON_HOCKEYD_MENU 0x1A0004FD /* Show menu options */
3857 /*--- Priority 2 controls ---*/
3859 #define DIHATSWITCH_HOCKEYD_SCROLL 0x1A004601 /* scroll view */
3860 #define DIBUTTON_HOCKEYD_ZOOM 0x1A004406 /* Zoom view in / out */
3861 #define DIBUTTON_HOCKEYD_STRATEGY 0x1A004407 /* Invoke coaching menu for strategy help */
3862 #define DIBUTTON_HOCKEYD_TIMEOUT 0x1A004408 /* Call for time out */
3863 #define DIBUTTON_HOCKEYD_SUBSTITUTE 0x1A004409 /* substitute one player for another */
3864 #define DIBUTTON_HOCKEYD_LEFT_LINK 0x1A00C4E4 /* Fallback sidestep left button */
3865 #define DIBUTTON_HOCKEYD_RIGHT_LINK 0x1A00C4EC /* Fallback sidestep right button */
3866 #define DIBUTTON_HOCKEYD_FORWARD_LINK 0x1A0144E0 /* Fallback move forward button */
3867 #define DIBUTTON_HOCKEYD_BACK_LINK 0x1A0144E8 /* Fallback move back button */
3868 #define DIBUTTON_HOCKEYD_DEVICE 0x1A0044FE /* Show input device and controls */
3869 #define DIBUTTON_HOCKEYD_PAUSE 0x1A0044FC /* Start / Pause / Restart game */
3871 /*--- Sports - Hockey - Goalie
3872 Goal tending ---*/
3873 #define DIVIRTUAL_SPORTS_HOCKEY_GOALIE 0x1B000000
3874 #define DIAXIS_HOCKEYG_LATERAL 0x1B008201 /* Move / Aim: left / right */
3875 #define DIAXIS_HOCKEYG_MOVE 0x1B010202 /* Move / Aim: up / down */
3876 #define DIBUTTON_HOCKEYG_PASS 0x1B000401 /* pass puck */
3877 #define DIBUTTON_HOCKEYG_POKE 0x1B000402 /* poke / check / hack */
3878 #define DIBUTTON_HOCKEYG_STEAL 0x1B000403 /* attempt steal */
3879 #define DIBUTTON_HOCKEYG_BLOCK 0x1B000404 /* block puck */
3880 #define DIBUTTON_HOCKEYG_MENU 0x1B0004FD /* Show menu options */
3881 /*--- Priority 2 controls ---*/
3883 #define DIHATSWITCH_HOCKEYG_SCROLL 0x1B004601 /* scroll view */
3884 #define DIBUTTON_HOCKEYG_ZOOM 0x1B004405 /* Zoom view in / out */
3885 #define DIBUTTON_HOCKEYG_STRATEGY 0x1B004406 /* Invoke coaching menu for strategy help */
3886 #define DIBUTTON_HOCKEYG_TIMEOUT 0x1B004407 /* Call for time out */
3887 #define DIBUTTON_HOCKEYG_SUBSTITUTE 0x1B004408 /* substitute one player for another */
3888 #define DIBUTTON_HOCKEYG_LEFT_LINK 0x1B00C4E4 /* Fallback sidestep left button */
3889 #define DIBUTTON_HOCKEYG_RIGHT_LINK 0x1B00C4EC /* Fallback sidestep right button */
3890 #define DIBUTTON_HOCKEYG_FORWARD_LINK 0x1B0144E0 /* Fallback move forward button */
3891 #define DIBUTTON_HOCKEYG_BACK_LINK 0x1B0144E8 /* Fallback move back button */
3892 #define DIBUTTON_HOCKEYG_DEVICE 0x1B0044FE /* Show input device and controls */
3893 #define DIBUTTON_HOCKEYG_PAUSE 0x1B0044FC /* Start / Pause / Restart game */
3895 /*--- Sports - Mountain Biking
3896 ---*/
3897 #define DIVIRTUAL_SPORTS_BIKING_MOUNTAIN 0x1C000000
3898 #define DIAXIS_BIKINGM_TURN 0x1C008201 /* left / right */
3899 #define DIAXIS_BIKINGM_PEDAL 0x1C010202 /* Pedal faster / slower / brake */
3900 #define DIBUTTON_BIKINGM_JUMP 0x1C000401 /* jump over obstacle */
3901 #define DIBUTTON_BIKINGM_CAMERA 0x1C000402 /* switch camera view */
3902 #define DIBUTTON_BIKINGM_SPECIAL1 0x1C000403 /* perform first special move */
3903 #define DIBUTTON_BIKINGM_SELECT 0x1C000404 /* Select */
3904 #define DIBUTTON_BIKINGM_SPECIAL2 0x1C000405 /* perform second special move */
3905 #define DIBUTTON_BIKINGM_MENU 0x1C0004FD /* Show menu options */
3906 /*--- Priority 2 controls ---*/
3908 #define DIHATSWITCH_BIKINGM_SCROLL 0x1C004601 /* scroll view */
3909 #define DIBUTTON_BIKINGM_ZOOM 0x1C004406 /* Zoom view in / out */
3910 #define DIAXIS_BIKINGM_BRAKE 0x1C044203 /* Brake axis */
3911 #define DIBUTTON_BIKINGM_LEFT_LINK 0x1C00C4E4 /* Fallback turn left button */
3912 #define DIBUTTON_BIKINGM_RIGHT_LINK 0x1C00C4EC /* Fallback turn right button */
3913 #define DIBUTTON_BIKINGM_FASTER_LINK 0x1C0144E0 /* Fallback pedal faster button */
3914 #define DIBUTTON_BIKINGM_SLOWER_LINK 0x1C0144E8 /* Fallback pedal slower button */
3915 #define DIBUTTON_BIKINGM_BRAKE_BUTTON_LINK 0x1C0444E8 /* Fallback brake button */
3916 #define DIBUTTON_BIKINGM_DEVICE 0x1C0044FE /* Show input device and controls */
3917 #define DIBUTTON_BIKINGM_PAUSE 0x1C0044FC /* Start / Pause / Restart game */
3919 /*--- Sports: Skiing / Snowboarding / Skateboarding
3920 ---*/
3921 #define DIVIRTUAL_SPORTS_SKIING 0x1D000000
3922 #define DIAXIS_SKIING_TURN 0x1D008201 /* left / right */
3923 #define DIAXIS_SKIING_SPEED 0x1D010202 /* faster / slower */
3924 #define DIBUTTON_SKIING_JUMP 0x1D000401 /* Jump */
3925 #define DIBUTTON_SKIING_CROUCH 0x1D000402 /* crouch down */
3926 #define DIBUTTON_SKIING_CAMERA 0x1D000403 /* switch camera view */
3927 #define DIBUTTON_SKIING_SPECIAL1 0x1D000404 /* perform first special move */
3928 #define DIBUTTON_SKIING_SELECT 0x1D000405 /* Select */
3929 #define DIBUTTON_SKIING_SPECIAL2 0x1D000406 /* perform second special move */
3930 #define DIBUTTON_SKIING_MENU 0x1D0004FD /* Show menu options */
3931 /*--- Priority 2 controls ---*/
3933 #define DIHATSWITCH_SKIING_GLANCE 0x1D004601 /* scroll view */
3934 #define DIBUTTON_SKIING_ZOOM 0x1D004407 /* Zoom view in / out */
3935 #define DIBUTTON_SKIING_LEFT_LINK 0x1D00C4E4 /* Fallback turn left button */
3936 #define DIBUTTON_SKIING_RIGHT_LINK 0x1D00C4EC /* Fallback turn right button */
3937 #define DIBUTTON_SKIING_FASTER_LINK 0x1D0144E0 /* Fallback increase speed button */
3938 #define DIBUTTON_SKIING_SLOWER_LINK 0x1D0144E8 /* Fallback decrease speed button */
3939 #define DIBUTTON_SKIING_DEVICE 0x1D0044FE /* Show input device and controls */
3940 #define DIBUTTON_SKIING_PAUSE 0x1D0044FC /* Start / Pause / Restart game */
3942 /*--- Sports - Soccer - Offense
3943 Offense ---*/
3944 #define DIVIRTUAL_SPORTS_SOCCER_OFFENSE 0x1E000000
3945 #define DIAXIS_SOCCERO_LATERAL 0x1E008201 /* Move / Aim: left / right */
3946 #define DIAXIS_SOCCERO_MOVE 0x1E010202 /* Move / Aim: up / down */
3947 #define DIAXIS_SOCCERO_BEND 0x1E018203 /* Bend to soccer shot/pass */
3948 #define DIBUTTON_SOCCERO_SHOOT 0x1E000401 /* Shoot the ball */
3949 #define DIBUTTON_SOCCERO_PASS 0x1E000402 /* Pass */
3950 #define DIBUTTON_SOCCERO_FAKE 0x1E000403 /* Fake */
3951 #define DIBUTTON_SOCCERO_PLAYER 0x1E000404 /* Select next player */
3952 #define DIBUTTON_SOCCERO_SPECIAL1 0x1E000405 /* Apply special move */
3953 #define DIBUTTON_SOCCERO_SELECT 0x1E000406 /* Select special move */
3954 #define DIBUTTON_SOCCERO_MENU 0x1E0004FD /* Show menu options */
3955 /*--- Priority 2 controls ---*/
3957 #define DIHATSWITCH_SOCCERO_GLANCE 0x1E004601 /* scroll view */
3958 #define DIBUTTON_SOCCERO_SUBSTITUTE 0x1E004407 /* Substitute one player for another */
3959 #define DIBUTTON_SOCCERO_SHOOTLOW 0x1E004408 /* Shoot the ball low */
3960 #define DIBUTTON_SOCCERO_SHOOTHIGH 0x1E004409 /* Shoot the ball high */
3961 #define DIBUTTON_SOCCERO_PASSTHRU 0x1E00440A /* Make a thru pass */
3962 #define DIBUTTON_SOCCERO_SPRINT 0x1E00440B /* Sprint / turbo boost */
3963 #define DIBUTTON_SOCCERO_CONTROL 0x1E00440C /* Obtain control of the ball */
3964 #define DIBUTTON_SOCCERO_HEAD 0x1E00440D /* Attempt to head the ball */
3965 #define DIBUTTON_SOCCERO_LEFT_LINK 0x1E00C4E4 /* Fallback sidestep left button */
3966 #define DIBUTTON_SOCCERO_RIGHT_LINK 0x1E00C4EC /* Fallback sidestep right button */
3967 #define DIBUTTON_SOCCERO_FORWARD_LINK 0x1E0144E0 /* Fallback move forward button */
3968 #define DIBUTTON_SOCCERO_BACK_LINK 0x1E0144E8 /* Fallback move back button */
3969 #define DIBUTTON_SOCCERO_DEVICE 0x1E0044FE /* Show input device and controls */
3970 #define DIBUTTON_SOCCERO_PAUSE 0x1E0044FC /* Start / Pause / Restart game */
3972 /*--- Sports - Soccer - Defense
3973 Defense ---*/
3974 #define DIVIRTUAL_SPORTS_SOCCER_DEFENSE 0x1F000000
3975 #define DIAXIS_SOCCERD_LATERAL 0x1F008201 /* Move / Aim: left / right */
3976 #define DIAXIS_SOCCERD_MOVE 0x1F010202 /* Move / Aim: up / down */
3977 #define DIBUTTON_SOCCERD_BLOCK 0x1F000401 /* Attempt to block shot */
3978 #define DIBUTTON_SOCCERD_STEAL 0x1F000402 /* Attempt to steal ball */
3979 #define DIBUTTON_SOCCERD_FAKE 0x1F000403 /* Fake a block or a steal */
3980 #define DIBUTTON_SOCCERD_PLAYER 0x1F000404 /* Select next player */
3981 #define DIBUTTON_SOCCERD_SPECIAL 0x1F000405 /* Apply special move */
3982 #define DIBUTTON_SOCCERD_SELECT 0x1F000406 /* Select special move */
3983 #define DIBUTTON_SOCCERD_SLIDE 0x1F000407 /* Attempt a slide tackle */
3984 #define DIBUTTON_SOCCERD_MENU 0x1F0004FD /* Show menu options */
3985 /*--- Priority 2 controls ---*/
3987 #define DIHATSWITCH_SOCCERD_GLANCE 0x1F004601 /* scroll view */
3988 #define DIBUTTON_SOCCERD_FOUL 0x1F004408 /* Initiate a foul / hard-foul */
3989 #define DIBUTTON_SOCCERD_HEAD 0x1F004409 /* Attempt a Header */
3990 #define DIBUTTON_SOCCERD_CLEAR 0x1F00440A /* Attempt to clear the ball down the field */
3991 #define DIBUTTON_SOCCERD_GOALIECHARGE 0x1F00440B /* Make the goalie charge out of the box */
3992 #define DIBUTTON_SOCCERD_SUBSTITUTE 0x1F00440C /* Substitute one player for another */
3993 #define DIBUTTON_SOCCERD_LEFT_LINK 0x1F00C4E4 /* Fallback sidestep left button */
3994 #define DIBUTTON_SOCCERD_RIGHT_LINK 0x1F00C4EC /* Fallback sidestep right button */
3995 #define DIBUTTON_SOCCERD_FORWARD_LINK 0x1F0144E0 /* Fallback move forward button */
3996 #define DIBUTTON_SOCCERD_BACK_LINK 0x1F0144E8 /* Fallback move back button */
3997 #define DIBUTTON_SOCCERD_DEVICE 0x1F0044FE /* Show input device and controls */
3998 #define DIBUTTON_SOCCERD_PAUSE 0x1F0044FC /* Start / Pause / Restart game */
4000 /*--- Sports - Racquet
4001 Tennis - Table-Tennis - Squash ---*/
4002 #define DIVIRTUAL_SPORTS_RACQUET 0x20000000
4003 #define DIAXIS_RACQUET_LATERAL 0x20008201 /* Move / Aim: left / right */
4004 #define DIAXIS_RACQUET_MOVE 0x20010202 /* Move / Aim: up / down */
4005 #define DIBUTTON_RACQUET_SWING 0x20000401 /* Swing racquet */
4006 #define DIBUTTON_RACQUET_BACKSWING 0x20000402 /* Swing backhand */
4007 #define DIBUTTON_RACQUET_SMASH 0x20000403 /* Smash shot */
4008 #define DIBUTTON_RACQUET_SPECIAL 0x20000404 /* Special shot */
4009 #define DIBUTTON_RACQUET_SELECT 0x20000405 /* Select special shot */
4010 #define DIBUTTON_RACQUET_MENU 0x200004FD /* Show menu options */
4011 /*--- Priority 2 controls ---*/
4013 #define DIHATSWITCH_RACQUET_GLANCE 0x20004601 /* scroll view */
4014 #define DIBUTTON_RACQUET_TIMEOUT 0x20004406 /* Call for time out */
4015 #define DIBUTTON_RACQUET_SUBSTITUTE 0x20004407 /* Substitute one player for another */
4016 #define DIBUTTON_RACQUET_LEFT_LINK 0x2000C4E4 /* Fallback sidestep left button */
4017 #define DIBUTTON_RACQUET_RIGHT_LINK 0x2000C4EC /* Fallback sidestep right button */
4018 #define DIBUTTON_RACQUET_FORWARD_LINK 0x200144E0 /* Fallback move forward button */
4019 #define DIBUTTON_RACQUET_BACK_LINK 0x200144E8 /* Fallback move back button */
4020 #define DIBUTTON_RACQUET_DEVICE 0x200044FE /* Show input device and controls */
4021 #define DIBUTTON_RACQUET_PAUSE 0x200044FC /* Start / Pause / Restart game */
4023 /*--- Arcade- 2D
4024 Side to Side movement ---*/
4025 #define DIVIRTUAL_ARCADE_SIDE2SIDE 0x21000000
4026 #define DIAXIS_ARCADES_LATERAL 0x21008201 /* left / right */
4027 #define DIAXIS_ARCADES_MOVE 0x21010202 /* up / down */
4028 #define DIBUTTON_ARCADES_THROW 0x21000401 /* throw object */
4029 #define DIBUTTON_ARCADES_CARRY 0x21000402 /* carry object */
4030 #define DIBUTTON_ARCADES_ATTACK 0x21000403 /* attack */
4031 #define DIBUTTON_ARCADES_SPECIAL 0x21000404 /* apply special move */
4032 #define DIBUTTON_ARCADES_SELECT 0x21000405 /* select special move */
4033 #define DIBUTTON_ARCADES_MENU 0x210004FD /* Show menu options */
4034 /*--- Priority 2 controls ---*/
4036 #define DIHATSWITCH_ARCADES_VIEW 0x21004601 /* scroll view left / right / up / down */
4037 #define DIBUTTON_ARCADES_LEFT_LINK 0x2100C4E4 /* Fallback sidestep left button */
4038 #define DIBUTTON_ARCADES_RIGHT_LINK 0x2100C4EC /* Fallback sidestep right button */
4039 #define DIBUTTON_ARCADES_FORWARD_LINK 0x210144E0 /* Fallback move forward button */
4040 #define DIBUTTON_ARCADES_BACK_LINK 0x210144E8 /* Fallback move back button */
4041 #define DIBUTTON_ARCADES_VIEW_UP_LINK 0x2107C4E0 /* Fallback scroll view up button */
4042 #define DIBUTTON_ARCADES_VIEW_DOWN_LINK 0x2107C4E8 /* Fallback scroll view down button */
4043 #define DIBUTTON_ARCADES_VIEW_LEFT_LINK 0x2107C4E4 /* Fallback scroll view left button */
4044 #define DIBUTTON_ARCADES_VIEW_RIGHT_LINK 0x2107C4EC /* Fallback scroll view right button */
4045 #define DIBUTTON_ARCADES_DEVICE 0x210044FE /* Show input device and controls */
4046 #define DIBUTTON_ARCADES_PAUSE 0x210044FC /* Start / Pause / Restart game */
4048 /*--- Arcade - Platform Game
4049 Character moves around on screen ---*/
4050 #define DIVIRTUAL_ARCADE_PLATFORM 0x22000000
4051 #define DIAXIS_ARCADEP_LATERAL 0x22008201 /* Left / right */
4052 #define DIAXIS_ARCADEP_MOVE 0x22010202 /* Up / down */
4053 #define DIBUTTON_ARCADEP_JUMP 0x22000401 /* Jump */
4054 #define DIBUTTON_ARCADEP_FIRE 0x22000402 /* Fire */
4055 #define DIBUTTON_ARCADEP_CROUCH 0x22000403 /* Crouch */
4056 #define DIBUTTON_ARCADEP_SPECIAL 0x22000404 /* Apply special move */
4057 #define DIBUTTON_ARCADEP_SELECT 0x22000405 /* Select special move */
4058 #define DIBUTTON_ARCADEP_MENU 0x220004FD /* Show menu options */
4059 /*--- Priority 2 controls ---*/
4061 #define DIHATSWITCH_ARCADEP_VIEW 0x22004601 /* Scroll view */
4062 #define DIBUTTON_ARCADEP_FIRESECONDARY 0x22004406 /* Alternative fire button */
4063 #define DIBUTTON_ARCADEP_LEFT_LINK 0x2200C4E4 /* Fallback sidestep left button */
4064 #define DIBUTTON_ARCADEP_RIGHT_LINK 0x2200C4EC /* Fallback sidestep right button */
4065 #define DIBUTTON_ARCADEP_FORWARD_LINK 0x220144E0 /* Fallback move forward button */
4066 #define DIBUTTON_ARCADEP_BACK_LINK 0x220144E8 /* Fallback move back button */
4067 #define DIBUTTON_ARCADEP_VIEW_UP_LINK 0x2207C4E0 /* Fallback scroll view up button */
4068 #define DIBUTTON_ARCADEP_VIEW_DOWN_LINK 0x2207C4E8 /* Fallback scroll view down button */
4069 #define DIBUTTON_ARCADEP_VIEW_LEFT_LINK 0x2207C4E4 /* Fallback scroll view left button */
4070 #define DIBUTTON_ARCADEP_VIEW_RIGHT_LINK 0x2207C4EC /* Fallback scroll view right button */
4071 #define DIBUTTON_ARCADEP_DEVICE 0x220044FE /* Show input device and controls */
4072 #define DIBUTTON_ARCADEP_PAUSE 0x220044FC /* Start / Pause / Restart game */
4074 /*--- CAD - 2D Object Control
4075 Controls to select and move objects in 2D ---*/
4076 #define DIVIRTUAL_CAD_2DCONTROL 0x23000000
4077 #define DIAXIS_2DCONTROL_LATERAL 0x23008201 /* Move view left / right */
4078 #define DIAXIS_2DCONTROL_MOVE 0x23010202 /* Move view up / down */
4079 #define DIAXIS_2DCONTROL_INOUT 0x23018203 /* Zoom - in / out */
4080 #define DIBUTTON_2DCONTROL_SELECT 0x23000401 /* Select Object */
4081 #define DIBUTTON_2DCONTROL_SPECIAL1 0x23000402 /* Do first special operation */
4082 #define DIBUTTON_2DCONTROL_SPECIAL 0x23000403 /* Select special operation */
4083 #define DIBUTTON_2DCONTROL_SPECIAL2 0x23000404 /* Do second special operation */
4084 #define DIBUTTON_2DCONTROL_MENU 0x230004FD /* Show menu options */
4085 /*--- Priority 2 controls ---*/
4087 #define DIHATSWITCH_2DCONTROL_HATSWITCH 0x23004601 /* Hat switch */
4088 #define DIAXIS_2DCONTROL_ROTATEZ 0x23024204 /* Rotate view clockwise / counterclockwise */
4089 #define DIBUTTON_2DCONTROL_DISPLAY 0x23004405 /* Shows next on-screen display options */
4090 #define DIBUTTON_2DCONTROL_DEVICE 0x230044FE /* Show input device and controls */
4091 #define DIBUTTON_2DCONTROL_PAUSE 0x230044FC /* Start / Pause / Restart game */
4093 /*--- CAD - 3D object control
4094 Controls to select and move objects within a 3D environment ---*/
4095 #define DIVIRTUAL_CAD_3DCONTROL 0x24000000
4096 #define DIAXIS_3DCONTROL_LATERAL 0x24008201 /* Move view left / right */
4097 #define DIAXIS_3DCONTROL_MOVE 0x24010202 /* Move view up / down */
4098 #define DIAXIS_3DCONTROL_INOUT 0x24018203 /* Zoom - in / out */
4099 #define DIBUTTON_3DCONTROL_SELECT 0x24000401 /* Select Object */
4100 #define DIBUTTON_3DCONTROL_SPECIAL1 0x24000402 /* Do first special operation */
4101 #define DIBUTTON_3DCONTROL_SPECIAL 0x24000403 /* Select special operation */
4102 #define DIBUTTON_3DCONTROL_SPECIAL2 0x24000404 /* Do second special operation */
4103 #define DIBUTTON_3DCONTROL_MENU 0x240004FD /* Show menu options */
4104 /*--- Priority 2 controls ---*/
4106 #define DIHATSWITCH_3DCONTROL_HATSWITCH 0x24004601 /* Hat switch */
4107 #define DIAXIS_3DCONTROL_ROTATEX 0x24034204 /* Rotate view forward or up / backward or down */
4108 #define DIAXIS_3DCONTROL_ROTATEY 0x2402C205 /* Rotate view clockwise / counterclockwise */
4109 #define DIAXIS_3DCONTROL_ROTATEZ 0x24024206 /* Rotate view left / right */
4110 #define DIBUTTON_3DCONTROL_DISPLAY 0x24004405 /* Show next on-screen display options */
4111 #define DIBUTTON_3DCONTROL_DEVICE 0x240044FE /* Show input device and controls */
4112 #define DIBUTTON_3DCONTROL_PAUSE 0x240044FC /* Start / Pause / Restart game */
4114 /*--- CAD - 3D Navigation - Fly through
4115 Controls for 3D modeling ---*/
4116 #define DIVIRTUAL_CAD_FLYBY 0x25000000
4117 #define DIAXIS_CADF_LATERAL 0x25008201 /* move view left / right */
4118 #define DIAXIS_CADF_MOVE 0x25010202 /* move view up / down */
4119 #define DIAXIS_CADF_INOUT 0x25018203 /* in / out */
4120 #define DIBUTTON_CADF_SELECT 0x25000401 /* Select Object */
4121 #define DIBUTTON_CADF_SPECIAL1 0x25000402 /* do first special operation */
4122 #define DIBUTTON_CADF_SPECIAL 0x25000403 /* Select special operation */
4123 #define DIBUTTON_CADF_SPECIAL2 0x25000404 /* do second special operation */
4124 #define DIBUTTON_CADF_MENU 0x250004FD /* Show menu options */
4125 /*--- Priority 2 controls ---*/
4127 #define DIHATSWITCH_CADF_HATSWITCH 0x25004601 /* Hat switch */
4128 #define DIAXIS_CADF_ROTATEX 0x25034204 /* Rotate view forward or up / backward or down */
4129 #define DIAXIS_CADF_ROTATEY 0x2502C205 /* Rotate view clockwise / counterclockwise */
4130 #define DIAXIS_CADF_ROTATEZ 0x25024206 /* Rotate view left / right */
4131 #define DIBUTTON_CADF_DISPLAY 0x25004405 /* shows next on-screen display options */
4132 #define DIBUTTON_CADF_DEVICE 0x250044FE /* Show input device and controls */
4133 #define DIBUTTON_CADF_PAUSE 0x250044FC /* Start / Pause / Restart game */
4135 /*--- CAD - 3D Model Control
4136 Controls for 3D modeling ---*/
4137 #define DIVIRTUAL_CAD_MODEL 0x26000000
4138 #define DIAXIS_CADM_LATERAL 0x26008201 /* move view left / right */
4139 #define DIAXIS_CADM_MOVE 0x26010202 /* move view up / down */
4140 #define DIAXIS_CADM_INOUT 0x26018203 /* in / out */
4141 #define DIBUTTON_CADM_SELECT 0x26000401 /* Select Object */
4142 #define DIBUTTON_CADM_SPECIAL1 0x26000402 /* do first special operation */
4143 #define DIBUTTON_CADM_SPECIAL 0x26000403 /* Select special operation */
4144 #define DIBUTTON_CADM_SPECIAL2 0x26000404 /* do second special operation */
4145 #define DIBUTTON_CADM_MENU 0x260004FD /* Show menu options */
4146 /*--- Priority 2 controls ---*/
4148 #define DIHATSWITCH_CADM_HATSWITCH 0x26004601 /* Hat switch */
4149 #define DIAXIS_CADM_ROTATEX 0x26034204 /* Rotate view forward or up / backward or down */
4150 #define DIAXIS_CADM_ROTATEY 0x2602C205 /* Rotate view clockwise / counterclockwise */
4151 #define DIAXIS_CADM_ROTATEZ 0x26024206 /* Rotate view left / right */
4152 #define DIBUTTON_CADM_DISPLAY 0x26004405 /* shows next on-screen display options */
4153 #define DIBUTTON_CADM_DEVICE 0x260044FE /* Show input device and controls */
4154 #define DIBUTTON_CADM_PAUSE 0x260044FC /* Start / Pause / Restart game */
4156 /*--- Control - Media Equipment
4157 Remote ---*/
4158 #define DIVIRTUAL_REMOTE_CONTROL 0x27000000
4159 #define DIAXIS_REMOTE_SLIDER 0x27050201 /* Slider for adjustment: volume / color / bass / etc */
4160 #define DIBUTTON_REMOTE_MUTE 0x27000401 /* Set volume on current device to zero */
4161 #define DIBUTTON_REMOTE_SELECT 0x27000402 /* Next/previous: channel/ track / chapter / picture / station */
4162 #define DIBUTTON_REMOTE_PLAY 0x27002403 /* Start or pause entertainment on current device */
4163 #define DIBUTTON_REMOTE_CUE 0x27002404 /* Move through current media */
4164 #define DIBUTTON_REMOTE_REVIEW 0x27002405 /* Move through current media */
4165 #define DIBUTTON_REMOTE_CHANGE 0x27002406 /* Select next device */
4166 #define DIBUTTON_REMOTE_RECORD 0x27002407 /* Start recording the current media */
4167 #define DIBUTTON_REMOTE_MENU 0x270004FD /* Show menu options */
4168 /*--- Priority 2 controls ---*/
4170 #define DIAXIS_REMOTE_SLIDER2 0x27054202 /* Slider for adjustment: volume */
4171 #define DIBUTTON_REMOTE_TV 0x27005C08 /* Select TV */
4172 #define DIBUTTON_REMOTE_CABLE 0x27005C09 /* Select cable box */
4173 #define DIBUTTON_REMOTE_CD 0x27005C0A /* Select CD player */
4174 #define DIBUTTON_REMOTE_VCR 0x27005C0B /* Select VCR */
4175 #define DIBUTTON_REMOTE_TUNER 0x27005C0C /* Select tuner */
4176 #define DIBUTTON_REMOTE_DVD 0x27005C0D /* Select DVD player */
4177 #define DIBUTTON_REMOTE_ADJUST 0x27005C0E /* Enter device adjustment menu */
4178 #define DIBUTTON_REMOTE_DIGIT0 0x2700540F /* Digit 0 */
4179 #define DIBUTTON_REMOTE_DIGIT1 0x27005410 /* Digit 1 */
4180 #define DIBUTTON_REMOTE_DIGIT2 0x27005411 /* Digit 2 */
4181 #define DIBUTTON_REMOTE_DIGIT3 0x27005412 /* Digit 3 */
4182 #define DIBUTTON_REMOTE_DIGIT4 0x27005413 /* Digit 4 */
4183 #define DIBUTTON_REMOTE_DIGIT5 0x27005414 /* Digit 5 */
4184 #define DIBUTTON_REMOTE_DIGIT6 0x27005415 /* Digit 6 */
4185 #define DIBUTTON_REMOTE_DIGIT7 0x27005416 /* Digit 7 */
4186 #define DIBUTTON_REMOTE_DIGIT8 0x27005417 /* Digit 8 */
4187 #define DIBUTTON_REMOTE_DIGIT9 0x27005418 /* Digit 9 */
4188 #define DIBUTTON_REMOTE_DEVICE 0x270044FE /* Show input device and controls */
4189 #define DIBUTTON_REMOTE_PAUSE 0x270044FC /* Start / Pause / Restart game */
4191 /*--- Control- Web
4192 Help or Browser ---*/
4193 #define DIVIRTUAL_BROWSER_CONTROL 0x28000000
4194 #define DIAXIS_BROWSER_LATERAL 0x28008201 /* Move on screen pointer */
4195 #define DIAXIS_BROWSER_MOVE 0x28010202 /* Move on screen pointer */
4196 #define DIBUTTON_BROWSER_SELECT 0x28000401 /* Select current item */
4197 #define DIAXIS_BROWSER_VIEW 0x28018203 /* Move view up/down */
4198 #define DIBUTTON_BROWSER_REFRESH 0x28000402 /* Refresh */
4199 #define DIBUTTON_BROWSER_MENU 0x280004FD /* Show menu options */
4200 /*--- Priority 2 controls ---*/
4202 #define DIBUTTON_BROWSER_SEARCH 0x28004403 /* Use search tool */
4203 #define DIBUTTON_BROWSER_STOP 0x28004404 /* Cease current update */
4204 #define DIBUTTON_BROWSER_HOME 0x28004405 /* Go directly to "home" location */
4205 #define DIBUTTON_BROWSER_FAVORITES 0x28004406 /* Mark current site as favorite */
4206 #define DIBUTTON_BROWSER_NEXT 0x28004407 /* Select Next page */
4207 #define DIBUTTON_BROWSER_PREVIOUS 0x28004408 /* Select Previous page */
4208 #define DIBUTTON_BROWSER_HISTORY 0x28004409 /* Show/Hide History */
4209 #define DIBUTTON_BROWSER_PRINT 0x2800440A /* Print current page */
4210 #define DIBUTTON_BROWSER_DEVICE 0x280044FE /* Show input device and controls */
4211 #define DIBUTTON_BROWSER_PAUSE 0x280044FC /* Start / Pause / Restart game */
4213 /*--- Driving Simulator - Giant Walking Robot
4214 Walking tank with weapons ---*/
4215 #define DIVIRTUAL_DRIVING_MECHA 0x29000000
4216 #define DIAXIS_MECHA_STEER 0x29008201 /* Turns mecha left/right */
4217 #define DIAXIS_MECHA_TORSO 0x29010202 /* Tilts torso forward/backward */
4218 #define DIAXIS_MECHA_ROTATE 0x29020203 /* Turns torso left/right */
4219 #define DIAXIS_MECHA_THROTTLE 0x29038204 /* Engine Speed */
4220 #define DIBUTTON_MECHA_FIRE 0x29000401 /* Fire */
4221 #define DIBUTTON_MECHA_WEAPONS 0x29000402 /* Select next weapon group */
4222 #define DIBUTTON_MECHA_TARGET 0x29000403 /* Select closest enemy available target */
4223 #define DIBUTTON_MECHA_REVERSE 0x29000404 /* Toggles throttle in/out of reverse */
4224 #define DIBUTTON_MECHA_ZOOM 0x29000405 /* Zoom in/out targeting reticule */
4225 #define DIBUTTON_MECHA_JUMP 0x29000406 /* Fires jump jets */
4226 #define DIBUTTON_MECHA_MENU 0x290004FD /* Show menu options */
4227 /*--- Priority 2 controls ---*/
4229 #define DIBUTTON_MECHA_CENTER 0x29004407 /* Center torso to legs */
4230 #define DIHATSWITCH_MECHA_GLANCE 0x29004601 /* Look around */
4231 #define DIBUTTON_MECHA_VIEW 0x29004408 /* Cycle through view options */
4232 #define DIBUTTON_MECHA_FIRESECONDARY 0x29004409 /* Alternative fire button */
4233 #define DIBUTTON_MECHA_LEFT_LINK 0x2900C4E4 /* Fallback steer left button */
4234 #define DIBUTTON_MECHA_RIGHT_LINK 0x2900C4EC /* Fallback steer right button */
4235 #define DIBUTTON_MECHA_FORWARD_LINK 0x290144E0 /* Fallback tilt torso forward button */
4236 #define DIBUTTON_MECHA_BACK_LINK 0x290144E8 /* Fallback tilt toroso backward button */
4237 #define DIBUTTON_MECHA_ROTATE_LEFT_LINK 0x290244E4 /* Fallback rotate toroso right button */
4238 #define DIBUTTON_MECHA_ROTATE_RIGHT_LINK 0x290244EC /* Fallback rotate torso left button */
4239 #define DIBUTTON_MECHA_FASTER_LINK 0x2903C4E0 /* Fallback increase engine speed */
4240 #define DIBUTTON_MECHA_SLOWER_LINK 0x2903C4E8 /* Fallback decrease engine speed */
4241 #define DIBUTTON_MECHA_DEVICE 0x290044FE /* Show input device and controls */
4242 #define DIBUTTON_MECHA_PAUSE 0x290044FC /* Start / Pause / Restart game */
4245 * "ANY" semantics can be used as a last resort to get mappings for actions
4246 * that match nothing in the chosen virtual genre. These semantics will be
4247 * mapped at a lower priority that virtual genre semantics. Also, hardware
4248 * vendors will not be able to provide sensible mappings for these unless
4249 * they provide application specific mappings.
4251 #define DIAXIS_ANY_X_1 0xFF00C201
4252 #define DIAXIS_ANY_X_2 0xFF00C202
4253 #define DIAXIS_ANY_Y_1 0xFF014201
4254 #define DIAXIS_ANY_Y_2 0xFF014202
4255 #define DIAXIS_ANY_Z_1 0xFF01C201
4256 #define DIAXIS_ANY_Z_2 0xFF01C202
4257 #define DIAXIS_ANY_R_1 0xFF024201
4258 #define DIAXIS_ANY_R_2 0xFF024202
4259 #define DIAXIS_ANY_U_1 0xFF02C201
4260 #define DIAXIS_ANY_U_2 0xFF02C202
4261 #define DIAXIS_ANY_V_1 0xFF034201
4262 #define DIAXIS_ANY_V_2 0xFF034202
4263 #define DIAXIS_ANY_A_1 0xFF03C201
4264 #define DIAXIS_ANY_A_2 0xFF03C202
4265 #define DIAXIS_ANY_B_1 0xFF044201
4266 #define DIAXIS_ANY_B_2 0xFF044202
4267 #define DIAXIS_ANY_C_1 0xFF04C201
4268 #define DIAXIS_ANY_C_2 0xFF04C202
4269 #define DIAXIS_ANY_S_1 0xFF054201
4270 #define DIAXIS_ANY_S_2 0xFF054202
4272 #define DIAXIS_ANY_1 0xFF004201
4273 #define DIAXIS_ANY_2 0xFF004202
4274 #define DIAXIS_ANY_3 0xFF004203
4275 #define DIAXIS_ANY_4 0xFF004204
4277 #define DIPOV_ANY_1 0xFF004601
4278 #define DIPOV_ANY_2 0xFF004602
4279 #define DIPOV_ANY_3 0xFF004603
4280 #define DIPOV_ANY_4 0xFF004604
4282 #define DIBUTTON_ANY(instance) ( 0xFF004400 | instance )
4285 #ifdef __cplusplus
4287 #endif
4289 #endif /* __DINPUT_INCLUDED__ */
4291 /****************************************************************************
4293 * Definitions for non-IDirectInput (VJoyD) features defined more recently
4294 * than the current sdk files
4296 ****************************************************************************/
4298 #ifdef _INC_MMSYSTEM
4299 #ifndef MMNOJOY
4301 #ifndef __VJOYDX_INCLUDED__
4302 #define __VJOYDX_INCLUDED__
4304 #ifdef __cplusplus
4305 extern "C" {
4306 #endif
4309 * Flag to indicate that the dwReserved2 field of the JOYINFOEX structure
4310 * contains mini-driver specific data to be passed by VJoyD to the mini-
4311 * driver instead of doing a poll.
4313 #define JOY_PASSDRIVERDATA 0x10000000l
4316 * Informs the joystick driver that the configuration has been changed
4317 * and should be reloaded from the registery.
4318 * dwFlags is reserved and should be set to zero
4320 WINMMAPI MMRESULT WINAPI joyConfigChanged( DWORD dwFlags );
4322 #ifndef DIJ_RINGZERO
4324 * Invoke the joystick control panel directly, using the passed window handle
4325 * as the parent of the dialog. This API is only supported for compatibility
4326 * purposes; new applications should use the RunControlPanel method of a
4327 * device interface for a game controller.
4328 * The API is called by using the function pointer returned by
4329 * GetProcAddress( hCPL, TEXT("ShowJoyCPL") ) where hCPL is a HMODULE returned
4330 * by LoadLibrary( TEXT("joy.cpl") ). The typedef is provided to allow
4331 * declaration and casting of an appropriately typed variable.
4333 void WINAPI ShowJoyCPL( HWND hWnd );
4334 typedef void (WINAPI* LPFNSHOWJOYCPL)( HWND hWnd );
4335 #endif /* DIJ_RINGZERO */
4339 * Hardware Setting indicating that the device is a headtracker
4341 #define JOY_HWS_ISHEADTRACKER 0x02000000l
4344 * Hardware Setting indicating that the VxD is used to replace
4345 * the standard analog polling
4347 #define JOY_HWS_ISGAMEPORTDRIVER 0x04000000l
4350 * Hardware Setting indicating that the driver needs a standard
4351 * gameport in order to communicate with the device.
4353 #define JOY_HWS_ISANALOGPORTDRIVER 0x08000000l
4356 * Hardware Setting indicating that VJoyD should not load this
4357 * driver, it will be loaded externally and will register with
4358 * VJoyD of it's own accord.
4360 #define JOY_HWS_AUTOLOAD 0x10000000l
4363 * Hardware Setting indicating that the driver acquires any
4364 * resources needed without needing a devnode through VJoyD.
4366 #define JOY_HWS_NODEVNODE 0x20000000l
4370 * Hardware Setting indicating that the device is a gameport bus
4372 #define JOY_HWS_ISGAMEPORTBUS 0x80000000l
4373 #define JOY_HWS_GAMEPORTBUSBUSY 0x00000001l
4376 * Usage Setting indicating that the settings are volatile and
4377 * should be removed if still present on a reboot.
4379 #define JOY_US_VOLATILE 0x00000008L
4381 #ifdef __cplusplus
4383 #endif
4385 #endif /* __VJOYDX_INCLUDED__ */
4387 #endif /* not MMNOJOY */
4388 #endif /* _INC_MMSYSTEM */
4390 /****************************************************************************
4392 * Definitions for non-IDirectInput (VJoyD) features defined more recently
4393 * than the current ddk files
4395 ****************************************************************************/
4397 #ifndef DIJ_RINGZERO
4399 #ifdef _INC_MMDDK
4400 #ifndef MMNOJOYDEV
4402 #ifndef __VJOYDXD_INCLUDED__
4403 #define __VJOYDXD_INCLUDED__
4405 * Poll type in which the do_other field of the JOYOEMPOLLDATA
4406 * structure contains mini-driver specific data passed from an app.
4408 #define JOY_OEMPOLL_PASSDRIVERDATA 7
4410 #endif /* __VJOYDXD_INCLUDED__ */
4412 #endif /* not MMNOJOYDEV */
4413 #endif /* _INC_MMDDK */
4415 #endif /* DIJ_RINGZERO */