2 * Copyright (c) 2007-2010 SlimDX Group
\r
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
\r
5 * of this software and associated documentation files (the "Software"), to deal
\r
6 * in the Software without restriction, including without limitation the rights
\r
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\r
8 * copies of the Software, and to permit persons to whom the Software is
\r
9 * furnished to do so, subject to the following conditions:
\r
11 * The above copyright notice and this permission notice shall be included in
\r
12 * all copies or substantial portions of the Software.
\r
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\r
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\r
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\r
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\r
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\r
26 namespace DirectInput
\r
29 /// Defines object codes that refer to any control type on a device.
\r
31 public ref class AnyControl sealed
\r
38 /// Refers to any axis.
\r
40 literal int Axis1 = DIAXIS_ANY_1;
\r
43 /// Refers to any axis.
\r
45 literal int Axis2 = DIAXIS_ANY_2;
\r
48 /// Refers to any axis.
\r
50 literal int Axis3 = DIAXIS_ANY_3;
\r
53 /// Refers to any accelerator.
\r
55 literal int Accelerator1 = DIAXIS_ANY_A_1;
\r
58 /// Refers to any accelerator.
\r
60 literal int Accelerator2 = DIAXIS_ANY_A_2;
\r
63 /// Refers to any brake.
\r
65 literal int Brake1 = DIAXIS_ANY_B_1;
\r
68 /// Refers to any brake.
\r
70 literal int Brake2 = DIAXIS_ANY_B_2;
\r
73 /// Refers to any clutch.
\r
75 literal int Clutch1 = DIAXIS_ANY_C_1;
\r
78 /// Refers to any clutch.
\r
80 literal int Clutch2 = DIAXIS_ANY_C_2;
\r
83 /// Refers to any r-axis.
\r
85 literal int RAxis1 = DIAXIS_ANY_R_1;
\r
88 /// Refers to any r-axis.
\r
90 literal int RAxis2 = DIAXIS_ANY_R_2;
\r
93 /// Refers to any s-axis.
\r
95 literal int SAxis1 = DIAXIS_ANY_S_1;
\r
98 /// Refers to any s-axis.
\r
100 literal int SAxis2 = DIAXIS_ANY_S_2;
\r
103 /// Refers to any u-axis.
\r
105 literal int UAxis1 = DIAXIS_ANY_U_1;
\r
108 /// Refers to any u-axis.
\r
110 literal int UAxis2 = DIAXIS_ANY_U_2;
\r
113 /// Refers to any v-axis.
\r
115 literal int VAxis1 = DIAXIS_ANY_V_1;
\r
118 /// Refers to any v-axis.
\r
120 literal int VAxis2 = DIAXIS_ANY_V_2;
\r
123 /// Refers to any x-axis.
\r
125 literal int XAxis1 = DIAXIS_ANY_X_1;
\r
128 /// Refers to any x-axis.
\r
130 literal int XAxis2 = DIAXIS_ANY_X_2;
\r
133 /// Refers to any y-axis.
\r
135 literal int YAxis1 = DIAXIS_ANY_Y_1;
\r
138 /// Refers to any y-axis.
\r
140 literal int YAxis2 = DIAXIS_ANY_Y_2;
\r
143 /// Refers to any z-axis.
\r
145 literal int ZAxis1 = DIAXIS_ANY_Z_1;
\r
148 /// Refers to any z-axis.
\r
150 literal int ZAxis2 = DIAXIS_ANY_Z_2;
\r
153 /// Refers to any point-of-view controller.
\r
155 literal int PointOfView1 = DIPOV_ANY_1;
\r
158 /// Refers to any point-of-view controller.
\r
160 literal int PointOfView2 = DIPOV_ANY_2;
\r
163 /// Refers to any point-of-view controller.
\r
165 literal int PointOfView3 = DIPOV_ANY_3;
\r
168 /// Refers to any point-of-view controller.
\r
170 literal int PointOfView4 = DIPOV_ANY_4;
\r
173 /// Refers to any button.
\r
175 static int Button( int buttonId ) { return DIBUTTON_ANY( buttonId ); }
\r