annotate lib/legacy_dx/dinput.h @ 411:747933903b1c

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