+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-namespace SlimDX\r
-{\r
- namespace DirectInput\r
- {\r
- /// <summary>\r
- /// Contains action mapping constants for combat racing games.\r
- /// </summary>\r
- public ref class CombatRacingControls sealed\r
- {\r
- private:\r
- CombatRacingControls() { }\r
-\r
- public:\r
- /// <summary>\r
- /// Represents the combat racing genre.\r
- /// </summary>\r
- literal int CombatRacingGenre = DIVIRTUAL_DRIVING_COMBAT;\r
-\r
- /// <summary>\r
- /// Represents a "Steer" action.\r
- /// </summary>\r
- literal int Steer = DIAXIS_DRIVINGC_STEER;\r
-\r
- /// <summary>\r
- /// Represents a "Accelerate" action.\r
- /// </summary>\r
- literal int Accelerate = DIAXIS_DRIVINGC_ACCELERATE;\r
-\r
- /// <summary>\r
- /// Represents a "Brake" action.\r
- /// </summary>\r
- literal int BrakeAxis = DIAXIS_DRIVINGC_BRAKE;\r
-\r
- /// <summary>\r
- /// Represents a "Fire" action.\r
- /// </summary>\r
- literal int Fire = DIBUTTON_DRIVINGC_FIRE;\r
-\r
- /// <summary>\r
- /// Represents a "Weapons" action.\r
- /// </summary>\r
- literal int Weapons = DIBUTTON_DRIVINGC_WEAPONS;\r
-\r
- /// <summary>\r
- /// Represents a "Target" action.\r
- /// </summary>\r
- literal int Target = DIBUTTON_DRIVINGC_TARGET;\r
-\r
- /// <summary>\r
- /// Represents a "Menu" action.\r
- /// </summary>\r
- literal int Menu = DIBUTTON_DRIVINGC_MENU;\r
-\r
- /// <summary>\r
- /// Represents a "AccelerateAndBrake" action.\r
- /// </summary>\r
- literal int AccelerateAndBrake = DIAXIS_DRIVINGC_ACCEL_AND_BRAKE;\r
-\r
- /// <summary>\r
- /// Represents a "Glance" action.\r
- /// </summary>\r
- literal int Glance = DIHATSWITCH_DRIVINGC_GLANCE;\r
-\r
- /// <summary>\r
- /// Represents a "ShiftUp" action.\r
- /// </summary>\r
- literal int ShiftUp = DIBUTTON_DRIVINGC_SHIFTUP;\r
-\r
- /// <summary>\r
- /// Represents a "ShiftDown" action.\r
- /// </summary>\r
- literal int ShiftDown = DIBUTTON_DRIVINGC_SHIFTDOWN;\r
-\r
- /// <summary>\r
- /// Represents a "Dashboard" action.\r
- /// </summary>\r
- literal int Dashboard = DIBUTTON_DRIVINGC_DASHBOARD;\r
-\r
- /// <summary>\r
- /// Represents a "Aids" action.\r
- /// </summary>\r
- literal int Aids = DIBUTTON_DRIVINGC_AIDS;\r
-\r
- /// <summary>\r
- /// Represents a "Brake" action.\r
- /// </summary>\r
- literal int Brake = DIBUTTON_DRIVINGC_BRAKE;\r
-\r
- /// <summary>\r
- /// Represents a "FireSecondary" action.\r
- /// </summary>\r
- literal int FireSecondary = DIBUTTON_DRIVINGC_FIRESECONDARY;\r
-\r
- /// <summary>\r
- /// Represents a "Accelerate" link.\r
- /// </summary>\r
- literal int AccelerateLink = DIBUTTON_DRIVINGC_ACCELERATE_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "SteerLeft" link.\r
- /// </summary>\r
- literal int SteerLeftLink = DIBUTTON_DRIVINGC_STEER_LEFT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "SteerRight" link.\r
- /// </summary>\r
- literal int SteerRightLink = DIBUTTON_DRIVINGC_STEER_RIGHT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "GlanceLeft" link.\r
- /// </summary>\r
- literal int GlanceLeftLink = DIBUTTON_DRIVINGC_GLANCE_LEFT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "GlanceRight" link.\r
- /// </summary>\r
- literal int GlanceRightLink = DIBUTTON_DRIVINGC_GLANCE_RIGHT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "Device" action.\r
- /// </summary>\r
- literal int Device = DIBUTTON_DRIVINGC_DEVICE;\r
-\r
- /// <summary>\r
- /// Represents a "Pause" action.\r
- /// </summary>\r
- literal int Pause = DIBUTTON_DRIVINGC_PAUSE;\r
- };\r
-\r
- /// <summary>\r
- /// Contains action mapping constants for mechanical fighting games.\r
- /// </summary>\r
- public ref class MechanicalFightingControls sealed\r
- {\r
- private:\r
- MechanicalFightingControls() { }\r
-\r
- public:\r
- /// <summary>\r
- /// Represents the mechanical fighting genre.\r
- /// </summary>\r
- literal int MechanicalFightingGenre = DIVIRTUAL_DRIVING_MECHA;\r
-\r
- /// <summary>\r
- /// Represents a "Steer" action.\r
- /// </summary>\r
- literal int Steer = DIAXIS_MECHA_STEER;\r
-\r
- /// <summary>\r
- /// Represents a "Torso" action.\r
- /// </summary>\r
- literal int Torso = DIAXIS_MECHA_TORSO;\r
-\r
- /// <summary>\r
- /// Represents a "Rotate" action.\r
- /// </summary>\r
- literal int Rotate = DIAXIS_MECHA_ROTATE;\r
-\r
- /// <summary>\r
- /// Represents a "Throttle" action.\r
- /// </summary>\r
- literal int Throttle = DIAXIS_MECHA_THROTTLE;\r
-\r
- /// <summary>\r
- /// Represents a "Fire" action.\r
- /// </summary>\r
- literal int Fire = DIBUTTON_MECHA_FIRE;\r
-\r
- /// <summary>\r
- /// Represents a "Weapons" action.\r
- /// </summary>\r
- literal int Weapons = DIBUTTON_MECHA_WEAPONS;\r
-\r
- /// <summary>\r
- /// Represents a "Target" action.\r
- /// </summary>\r
- literal int Target = DIBUTTON_MECHA_TARGET;\r
-\r
- /// <summary>\r
- /// Represents a "Reverse" action.\r
- /// </summary>\r
- literal int Reverse = DIBUTTON_MECHA_REVERSE;\r
-\r
- /// <summary>\r
- /// Represents a "Zoom" action.\r
- /// </summary>\r
- literal int Zoom = DIBUTTON_MECHA_ZOOM;\r
-\r
- /// <summary>\r
- /// Represents a "Jump" action.\r
- /// </summary>\r
- literal int Jump = DIBUTTON_MECHA_JUMP;\r
-\r
- /// <summary>\r
- /// Represents a "Menu" action.\r
- /// </summary>\r
- literal int Menu = DIBUTTON_MECHA_MENU;\r
-\r
- /// <summary>\r
- /// Represents a "Center" action.\r
- /// </summary>\r
- literal int Center = DIBUTTON_MECHA_CENTER;\r
-\r
- /// <summary>\r
- /// Represents a "Glance" action.\r
- /// </summary>\r
- literal int Glance = DIHATSWITCH_MECHA_GLANCE;\r
-\r
- /// <summary>\r
- /// Represents a "View" action.\r
- /// </summary>\r
- literal int View = DIBUTTON_MECHA_VIEW;\r
-\r
- /// <summary>\r
- /// Represents a "FireSecondary" action.\r
- /// </summary>\r
- literal int FireSecondary = DIBUTTON_MECHA_FIRESECONDARY;\r
-\r
- /// <summary>\r
- /// Represents a "Left" link.\r
- /// </summary>\r
- literal int LeftLink = DIBUTTON_MECHA_LEFT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "Right" link.\r
- /// </summary>\r
- literal int RightLink = DIBUTTON_MECHA_RIGHT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "Forward" link.\r
- /// </summary>\r
- literal int ForwardLink = DIBUTTON_MECHA_FORWARD_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "Back" link.\r
- /// </summary>\r
- literal int BackLink = DIBUTTON_MECHA_BACK_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "RotateLeft" link.\r
- /// </summary>\r
- literal int RotateLeftLink = DIBUTTON_MECHA_ROTATE_LEFT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "RotateRight" link.\r
- /// </summary>\r
- literal int RotateRightLink = DIBUTTON_MECHA_ROTATE_RIGHT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "Faster" link.\r
- /// </summary>\r
- literal int FasterLink = DIBUTTON_MECHA_FASTER_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "Slower" link.\r
- /// </summary>\r
- literal int SlowerLink = DIBUTTON_MECHA_SLOWER_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "Device" action.\r
- /// </summary>\r
- literal int Device = DIBUTTON_MECHA_DEVICE;\r
-\r
- /// <summary>\r
- /// Represents a "Pause" action.\r
- /// </summary>\r
- literal int Pause = DIBUTTON_MECHA_PAUSE;\r
- };\r
-\r
- /// <summary>\r
- /// Contains action mapping constants for racing games.\r
- /// </summary>\r
- public ref class RacingControls sealed\r
- {\r
- private:\r
- RacingControls() { }\r
-\r
- public:\r
- /// <summary>\r
- /// Represents the racing genre.\r
- /// </summary>\r
- literal int RacingGenre = DIVIRTUAL_DRIVING_RACE;\r
-\r
- /// <summary>\r
- /// Represents a "Steer" action.\r
- /// </summary>\r
- literal int Steer = DIAXIS_DRIVINGR_STEER;\r
-\r
- /// <summary>\r
- /// Represents a "Accelerate" action.\r
- /// </summary>\r
- literal int Accelerate = DIAXIS_DRIVINGR_ACCELERATE;\r
-\r
- /// <summary>\r
- /// Represents a "Brake" action.\r
- /// </summary>\r
- literal int BrakeAxis = DIAXIS_DRIVINGR_BRAKE;\r
-\r
- /// <summary>\r
- /// Represents a "ShiftUp" action.\r
- /// </summary>\r
- literal int ShiftUp = DIBUTTON_DRIVINGR_SHIFTUP;\r
-\r
- /// <summary>\r
- /// Represents a "ShiftDown" action.\r
- /// </summary>\r
- literal int ShiftDown = DIBUTTON_DRIVINGR_SHIFTDOWN;\r
-\r
- /// <summary>\r
- /// Represents a "View" action.\r
- /// </summary>\r
- literal int View = DIBUTTON_DRIVINGR_VIEW;\r
-\r
- /// <summary>\r
- /// Represents a "Menu" action.\r
- /// </summary>\r
- literal int Menu = DIBUTTON_DRIVINGR_MENU;\r
-\r
- /// <summary>\r
- /// Represents a "AccelerateAndBrake" action.\r
- /// </summary>\r
- literal int AccelerateAndBrake = DIAXIS_DRIVINGR_ACCEL_AND_BRAKE;\r
-\r
- /// <summary>\r
- /// Represents a "Glance" action.\r
- /// </summary>\r
- literal int Glance = DIHATSWITCH_DRIVINGR_GLANCE;\r
-\r
- /// <summary>\r
- /// Represents a "Brake" action.\r
- /// </summary>\r
- literal int Brake = DIBUTTON_DRIVINGR_BRAKE;\r
-\r
- /// <summary>\r
- /// Represents a "Dashboard" action.\r
- /// </summary>\r
- literal int Dashboard = DIBUTTON_DRIVINGR_DASHBOARD;\r
-\r
- /// <summary>\r
- /// Represents a "Aids" action.\r
- /// </summary>\r
- literal int Aids = DIBUTTON_DRIVINGR_AIDS;\r
-\r
- /// <summary>\r
- /// Represents a "Map" action.\r
- /// </summary>\r
- literal int Map = DIBUTTON_DRIVINGR_MAP;\r
-\r
- /// <summary>\r
- /// Represents a "Boost" action.\r
- /// </summary>\r
- literal int Boost = DIBUTTON_DRIVINGR_BOOST;\r
-\r
- /// <summary>\r
- /// Represents a "Pit" action.\r
- /// </summary>\r
- literal int Pit = DIBUTTON_DRIVINGR_PIT;\r
-\r
- /// <summary>\r
- /// Represents a "Accelerate" link.\r
- /// </summary>\r
- literal int AccelerateLink = DIBUTTON_DRIVINGR_ACCELERATE_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "SteerLeft" link.\r
- /// </summary>\r
- literal int SteerLeftLink = DIBUTTON_DRIVINGR_STEER_LEFT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "SteerRight" link.\r
- /// </summary>\r
- literal int SteerRightLink = DIBUTTON_DRIVINGR_STEER_RIGHT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "GlanceLeft" link.\r
- /// </summary>\r
- literal int GlanceLeftLink = DIBUTTON_DRIVINGR_GLANCE_LEFT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "GlanceRight" link.\r
- /// </summary>\r
- literal int GlanceRightLink = DIBUTTON_DRIVINGR_GLANCE_RIGHT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "Device" action.\r
- /// </summary>\r
- literal int Device = DIBUTTON_DRIVINGR_DEVICE;\r
-\r
- /// <summary>\r
- /// Represents a "Pause" action.\r
- /// </summary>\r
- literal int Pause = DIBUTTON_DRIVINGR_PAUSE;\r
- };\r
-\r
- /// <summary>\r
- /// Contains action mapping constants for tank driving games.\r
- /// </summary>\r
- public ref class TankDrivingControls sealed\r
- {\r
- private:\r
- TankDrivingControls() { }\r
-\r
- public:\r
- /// <summary>\r
- /// Represents the tank driving genre.\r
- /// </summary>\r
- literal int TankDrivingGenre = DIVIRTUAL_DRIVING_TANK;\r
-\r
- /// <summary>\r
- /// Represents a "Steer" action.\r
- /// </summary>\r
- literal int Steer = DIAXIS_DRIVINGT_STEER;\r
-\r
- /// <summary>\r
- /// Represents a "Barrel" action.\r
- /// </summary>\r
- literal int Barrel = DIAXIS_DRIVINGT_BARREL;\r
-\r
- /// <summary>\r
- /// Represents a "Accelerate" action.\r
- /// </summary>\r
- literal int Accelerate = DIAXIS_DRIVINGT_ACCELERATE;\r
-\r
- /// <summary>\r
- /// Represents a "Rotate" action.\r
- /// </summary>\r
- literal int Rotate = DIAXIS_DRIVINGT_ROTATE;\r
-\r
- /// <summary>\r
- /// Represents a "Fire" action.\r
- /// </summary>\r
- literal int Fire = DIBUTTON_DRIVINGT_FIRE;\r
-\r
- /// <summary>\r
- /// Represents a "Weapons" action.\r
- /// </summary>\r
- literal int Weapons = DIBUTTON_DRIVINGT_WEAPONS;\r
-\r
- /// <summary>\r
- /// Represents a "Target" action.\r
- /// </summary>\r
- literal int Target = DIBUTTON_DRIVINGT_TARGET;\r
-\r
- /// <summary>\r
- /// Represents a "Menu" action.\r
- /// </summary>\r
- literal int Menu = DIBUTTON_DRIVINGT_MENU;\r
-\r
- /// <summary>\r
- /// Represents a "Glance" action.\r
- /// </summary>\r
- literal int Glance = DIHATSWITCH_DRIVINGT_GLANCE;\r
-\r
- /// <summary>\r
- /// Represents a "Brake" action.\r
- /// </summary>\r
- literal int BrakeAxis = DIAXIS_DRIVINGT_BRAKE;\r
-\r
- /// <summary>\r
- /// Represents a "AccelerateAndBrake" action.\r
- /// </summary>\r
- literal int AccelerateAndBrake = DIAXIS_DRIVINGT_ACCEL_AND_BRAKE;\r
-\r
- /// <summary>\r
- /// Represents a "View" action.\r
- /// </summary>\r
- literal int View = DIBUTTON_DRIVINGT_VIEW;\r
-\r
- /// <summary>\r
- /// Represents a "Dashboard" action.\r
- /// </summary>\r
- literal int Dashboard = DIBUTTON_DRIVINGT_DASHBOARD;\r
-\r
- /// <summary>\r
- /// Represents a "Brake" action.\r
- /// </summary>\r
- literal int Brake = DIBUTTON_DRIVINGT_BRAKE;\r
-\r
- /// <summary>\r
- /// Represents a "FireSecondary" action.\r
- /// </summary>\r
- literal int FireSecondary = DIBUTTON_DRIVINGT_FIRESECONDARY;\r
-\r
- /// <summary>\r
- /// Represents a "Accelerate" link.\r
- /// </summary>\r
- literal int AccelerateLink = DIBUTTON_DRIVINGT_ACCELERATE_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "SteerLeft" link.\r
- /// </summary>\r
- literal int SteerLeftLink = DIBUTTON_DRIVINGT_STEER_LEFT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "SteerRight" link.\r
- /// </summary>\r
- literal int SteerRightLink = DIBUTTON_DRIVINGT_STEER_RIGHT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "BarrelUp" link.\r
- /// </summary>\r
- literal int BarrelUpLink = DIBUTTON_DRIVINGT_BARREL_UP_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "BarrelDown" link.\r
- /// </summary>\r
- literal int BarrelDownLink = DIBUTTON_DRIVINGT_BARREL_DOWN_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "RotateLeft" link.\r
- /// </summary>\r
- literal int RotateLeftLink = DIBUTTON_DRIVINGT_ROTATE_LEFT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "RotateRight" link.\r
- /// </summary>\r
- literal int RotateRightLink = DIBUTTON_DRIVINGT_ROTATE_RIGHT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "GlanceLeft" link.\r
- /// </summary>\r
- literal int GlanceLeftLink = DIBUTTON_DRIVINGT_GLANCE_LEFT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "GlanceRight" link.\r
- /// </summary>\r
- literal int GlanceRightLink = DIBUTTON_DRIVINGT_GLANCE_RIGHT_LINK;\r
-\r
- /// <summary>\r
- /// Represents a "Device" action.\r
- /// </summary>\r
- literal int Device = DIBUTTON_DRIVINGT_DEVICE;\r
-\r
- /// <summary>\r
- /// Represents a "Pause" action.\r
- /// </summary>\r
- literal int Pause = DIBUTTON_DRIVINGT_PAUSE;\r
- };\r
- }\r
-}\r