annotate lib/legacy_dx/dinput.h @ 208:af624eaf2fc5 tip

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