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 /// Contains action mapping constants for combat racing games.
\r
31 public ref class CombatRacingControls sealed
\r
34 CombatRacingControls() { }
\r
38 /// Represents the combat racing genre.
\r
40 literal int CombatRacingGenre = DIVIRTUAL_DRIVING_COMBAT;
\r
43 /// Represents a "Steer" action.
\r
45 literal int Steer = DIAXIS_DRIVINGC_STEER;
\r
48 /// Represents a "Accelerate" action.
\r
50 literal int Accelerate = DIAXIS_DRIVINGC_ACCELERATE;
\r
53 /// Represents a "Brake" action.
\r
55 literal int BrakeAxis = DIAXIS_DRIVINGC_BRAKE;
\r
58 /// Represents a "Fire" action.
\r
60 literal int Fire = DIBUTTON_DRIVINGC_FIRE;
\r
63 /// Represents a "Weapons" action.
\r
65 literal int Weapons = DIBUTTON_DRIVINGC_WEAPONS;
\r
68 /// Represents a "Target" action.
\r
70 literal int Target = DIBUTTON_DRIVINGC_TARGET;
\r
73 /// Represents a "Menu" action.
\r
75 literal int Menu = DIBUTTON_DRIVINGC_MENU;
\r
78 /// Represents a "AccelerateAndBrake" action.
\r
80 literal int AccelerateAndBrake = DIAXIS_DRIVINGC_ACCEL_AND_BRAKE;
\r
83 /// Represents a "Glance" action.
\r
85 literal int Glance = DIHATSWITCH_DRIVINGC_GLANCE;
\r
88 /// Represents a "ShiftUp" action.
\r
90 literal int ShiftUp = DIBUTTON_DRIVINGC_SHIFTUP;
\r
93 /// Represents a "ShiftDown" action.
\r
95 literal int ShiftDown = DIBUTTON_DRIVINGC_SHIFTDOWN;
\r
98 /// Represents a "Dashboard" action.
\r
100 literal int Dashboard = DIBUTTON_DRIVINGC_DASHBOARD;
\r
103 /// Represents a "Aids" action.
\r
105 literal int Aids = DIBUTTON_DRIVINGC_AIDS;
\r
108 /// Represents a "Brake" action.
\r
110 literal int Brake = DIBUTTON_DRIVINGC_BRAKE;
\r
113 /// Represents a "FireSecondary" action.
\r
115 literal int FireSecondary = DIBUTTON_DRIVINGC_FIRESECONDARY;
\r
118 /// Represents a "Accelerate" link.
\r
120 literal int AccelerateLink = DIBUTTON_DRIVINGC_ACCELERATE_LINK;
\r
123 /// Represents a "SteerLeft" link.
\r
125 literal int SteerLeftLink = DIBUTTON_DRIVINGC_STEER_LEFT_LINK;
\r
128 /// Represents a "SteerRight" link.
\r
130 literal int SteerRightLink = DIBUTTON_DRIVINGC_STEER_RIGHT_LINK;
\r
133 /// Represents a "GlanceLeft" link.
\r
135 literal int GlanceLeftLink = DIBUTTON_DRIVINGC_GLANCE_LEFT_LINK;
\r
138 /// Represents a "GlanceRight" link.
\r
140 literal int GlanceRightLink = DIBUTTON_DRIVINGC_GLANCE_RIGHT_LINK;
\r
143 /// Represents a "Device" action.
\r
145 literal int Device = DIBUTTON_DRIVINGC_DEVICE;
\r
148 /// Represents a "Pause" action.
\r
150 literal int Pause = DIBUTTON_DRIVINGC_PAUSE;
\r
154 /// Contains action mapping constants for mechanical fighting games.
\r
156 public ref class MechanicalFightingControls sealed
\r
159 MechanicalFightingControls() { }
\r
163 /// Represents the mechanical fighting genre.
\r
165 literal int MechanicalFightingGenre = DIVIRTUAL_DRIVING_MECHA;
\r
168 /// Represents a "Steer" action.
\r
170 literal int Steer = DIAXIS_MECHA_STEER;
\r
173 /// Represents a "Torso" action.
\r
175 literal int Torso = DIAXIS_MECHA_TORSO;
\r
178 /// Represents a "Rotate" action.
\r
180 literal int Rotate = DIAXIS_MECHA_ROTATE;
\r
183 /// Represents a "Throttle" action.
\r
185 literal int Throttle = DIAXIS_MECHA_THROTTLE;
\r
188 /// Represents a "Fire" action.
\r
190 literal int Fire = DIBUTTON_MECHA_FIRE;
\r
193 /// Represents a "Weapons" action.
\r
195 literal int Weapons = DIBUTTON_MECHA_WEAPONS;
\r
198 /// Represents a "Target" action.
\r
200 literal int Target = DIBUTTON_MECHA_TARGET;
\r
203 /// Represents a "Reverse" action.
\r
205 literal int Reverse = DIBUTTON_MECHA_REVERSE;
\r
208 /// Represents a "Zoom" action.
\r
210 literal int Zoom = DIBUTTON_MECHA_ZOOM;
\r
213 /// Represents a "Jump" action.
\r
215 literal int Jump = DIBUTTON_MECHA_JUMP;
\r
218 /// Represents a "Menu" action.
\r
220 literal int Menu = DIBUTTON_MECHA_MENU;
\r
223 /// Represents a "Center" action.
\r
225 literal int Center = DIBUTTON_MECHA_CENTER;
\r
228 /// Represents a "Glance" action.
\r
230 literal int Glance = DIHATSWITCH_MECHA_GLANCE;
\r
233 /// Represents a "View" action.
\r
235 literal int View = DIBUTTON_MECHA_VIEW;
\r
238 /// Represents a "FireSecondary" action.
\r
240 literal int FireSecondary = DIBUTTON_MECHA_FIRESECONDARY;
\r
243 /// Represents a "Left" link.
\r
245 literal int LeftLink = DIBUTTON_MECHA_LEFT_LINK;
\r
248 /// Represents a "Right" link.
\r
250 literal int RightLink = DIBUTTON_MECHA_RIGHT_LINK;
\r
253 /// Represents a "Forward" link.
\r
255 literal int ForwardLink = DIBUTTON_MECHA_FORWARD_LINK;
\r
258 /// Represents a "Back" link.
\r
260 literal int BackLink = DIBUTTON_MECHA_BACK_LINK;
\r
263 /// Represents a "RotateLeft" link.
\r
265 literal int RotateLeftLink = DIBUTTON_MECHA_ROTATE_LEFT_LINK;
\r
268 /// Represents a "RotateRight" link.
\r
270 literal int RotateRightLink = DIBUTTON_MECHA_ROTATE_RIGHT_LINK;
\r
273 /// Represents a "Faster" link.
\r
275 literal int FasterLink = DIBUTTON_MECHA_FASTER_LINK;
\r
278 /// Represents a "Slower" link.
\r
280 literal int SlowerLink = DIBUTTON_MECHA_SLOWER_LINK;
\r
283 /// Represents a "Device" action.
\r
285 literal int Device = DIBUTTON_MECHA_DEVICE;
\r
288 /// Represents a "Pause" action.
\r
290 literal int Pause = DIBUTTON_MECHA_PAUSE;
\r
294 /// Contains action mapping constants for racing games.
\r
296 public ref class RacingControls sealed
\r
299 RacingControls() { }
\r
303 /// Represents the racing genre.
\r
305 literal int RacingGenre = DIVIRTUAL_DRIVING_RACE;
\r
308 /// Represents a "Steer" action.
\r
310 literal int Steer = DIAXIS_DRIVINGR_STEER;
\r
313 /// Represents a "Accelerate" action.
\r
315 literal int Accelerate = DIAXIS_DRIVINGR_ACCELERATE;
\r
318 /// Represents a "Brake" action.
\r
320 literal int BrakeAxis = DIAXIS_DRIVINGR_BRAKE;
\r
323 /// Represents a "ShiftUp" action.
\r
325 literal int ShiftUp = DIBUTTON_DRIVINGR_SHIFTUP;
\r
328 /// Represents a "ShiftDown" action.
\r
330 literal int ShiftDown = DIBUTTON_DRIVINGR_SHIFTDOWN;
\r
333 /// Represents a "View" action.
\r
335 literal int View = DIBUTTON_DRIVINGR_VIEW;
\r
338 /// Represents a "Menu" action.
\r
340 literal int Menu = DIBUTTON_DRIVINGR_MENU;
\r
343 /// Represents a "AccelerateAndBrake" action.
\r
345 literal int AccelerateAndBrake = DIAXIS_DRIVINGR_ACCEL_AND_BRAKE;
\r
348 /// Represents a "Glance" action.
\r
350 literal int Glance = DIHATSWITCH_DRIVINGR_GLANCE;
\r
353 /// Represents a "Brake" action.
\r
355 literal int Brake = DIBUTTON_DRIVINGR_BRAKE;
\r
358 /// Represents a "Dashboard" action.
\r
360 literal int Dashboard = DIBUTTON_DRIVINGR_DASHBOARD;
\r
363 /// Represents a "Aids" action.
\r
365 literal int Aids = DIBUTTON_DRIVINGR_AIDS;
\r
368 /// Represents a "Map" action.
\r
370 literal int Map = DIBUTTON_DRIVINGR_MAP;
\r
373 /// Represents a "Boost" action.
\r
375 literal int Boost = DIBUTTON_DRIVINGR_BOOST;
\r
378 /// Represents a "Pit" action.
\r
380 literal int Pit = DIBUTTON_DRIVINGR_PIT;
\r
383 /// Represents a "Accelerate" link.
\r
385 literal int AccelerateLink = DIBUTTON_DRIVINGR_ACCELERATE_LINK;
\r
388 /// Represents a "SteerLeft" link.
\r
390 literal int SteerLeftLink = DIBUTTON_DRIVINGR_STEER_LEFT_LINK;
\r
393 /// Represents a "SteerRight" link.
\r
395 literal int SteerRightLink = DIBUTTON_DRIVINGR_STEER_RIGHT_LINK;
\r
398 /// Represents a "GlanceLeft" link.
\r
400 literal int GlanceLeftLink = DIBUTTON_DRIVINGR_GLANCE_LEFT_LINK;
\r
403 /// Represents a "GlanceRight" link.
\r
405 literal int GlanceRightLink = DIBUTTON_DRIVINGR_GLANCE_RIGHT_LINK;
\r
408 /// Represents a "Device" action.
\r
410 literal int Device = DIBUTTON_DRIVINGR_DEVICE;
\r
413 /// Represents a "Pause" action.
\r
415 literal int Pause = DIBUTTON_DRIVINGR_PAUSE;
\r
419 /// Contains action mapping constants for tank driving games.
\r
421 public ref class TankDrivingControls sealed
\r
424 TankDrivingControls() { }
\r
428 /// Represents the tank driving genre.
\r
430 literal int TankDrivingGenre = DIVIRTUAL_DRIVING_TANK;
\r
433 /// Represents a "Steer" action.
\r
435 literal int Steer = DIAXIS_DRIVINGT_STEER;
\r
438 /// Represents a "Barrel" action.
\r
440 literal int Barrel = DIAXIS_DRIVINGT_BARREL;
\r
443 /// Represents a "Accelerate" action.
\r
445 literal int Accelerate = DIAXIS_DRIVINGT_ACCELERATE;
\r
448 /// Represents a "Rotate" action.
\r
450 literal int Rotate = DIAXIS_DRIVINGT_ROTATE;
\r
453 /// Represents a "Fire" action.
\r
455 literal int Fire = DIBUTTON_DRIVINGT_FIRE;
\r
458 /// Represents a "Weapons" action.
\r
460 literal int Weapons = DIBUTTON_DRIVINGT_WEAPONS;
\r
463 /// Represents a "Target" action.
\r
465 literal int Target = DIBUTTON_DRIVINGT_TARGET;
\r
468 /// Represents a "Menu" action.
\r
470 literal int Menu = DIBUTTON_DRIVINGT_MENU;
\r
473 /// Represents a "Glance" action.
\r
475 literal int Glance = DIHATSWITCH_DRIVINGT_GLANCE;
\r
478 /// Represents a "Brake" action.
\r
480 literal int BrakeAxis = DIAXIS_DRIVINGT_BRAKE;
\r
483 /// Represents a "AccelerateAndBrake" action.
\r
485 literal int AccelerateAndBrake = DIAXIS_DRIVINGT_ACCEL_AND_BRAKE;
\r
488 /// Represents a "View" action.
\r
490 literal int View = DIBUTTON_DRIVINGT_VIEW;
\r
493 /// Represents a "Dashboard" action.
\r
495 literal int Dashboard = DIBUTTON_DRIVINGT_DASHBOARD;
\r
498 /// Represents a "Brake" action.
\r
500 literal int Brake = DIBUTTON_DRIVINGT_BRAKE;
\r
503 /// Represents a "FireSecondary" action.
\r
505 literal int FireSecondary = DIBUTTON_DRIVINGT_FIRESECONDARY;
\r
508 /// Represents a "Accelerate" link.
\r
510 literal int AccelerateLink = DIBUTTON_DRIVINGT_ACCELERATE_LINK;
\r
513 /// Represents a "SteerLeft" link.
\r
515 literal int SteerLeftLink = DIBUTTON_DRIVINGT_STEER_LEFT_LINK;
\r
518 /// Represents a "SteerRight" link.
\r
520 literal int SteerRightLink = DIBUTTON_DRIVINGT_STEER_RIGHT_LINK;
\r
523 /// Represents a "BarrelUp" link.
\r
525 literal int BarrelUpLink = DIBUTTON_DRIVINGT_BARREL_UP_LINK;
\r
528 /// Represents a "BarrelDown" link.
\r
530 literal int BarrelDownLink = DIBUTTON_DRIVINGT_BARREL_DOWN_LINK;
\r
533 /// Represents a "RotateLeft" link.
\r
535 literal int RotateLeftLink = DIBUTTON_DRIVINGT_ROTATE_LEFT_LINK;
\r
538 /// Represents a "RotateRight" link.
\r
540 literal int RotateRightLink = DIBUTTON_DRIVINGT_ROTATE_RIGHT_LINK;
\r
543 /// Represents a "GlanceLeft" link.
\r
545 literal int GlanceLeftLink = DIBUTTON_DRIVINGT_GLANCE_LEFT_LINK;
\r
548 /// Represents a "GlanceRight" link.
\r
550 literal int GlanceRightLink = DIBUTTON_DRIVINGT_GLANCE_RIGHT_LINK;
\r
553 /// Represents a "Device" action.
\r
555 literal int Device = DIBUTTON_DRIVINGT_DEVICE;
\r
558 /// Represents a "Pause" action.
\r
560 literal int Pause = DIBUTTON_DRIVINGT_PAUSE;
\r