OSDN Git Service

DTXMania089リリースに際してのtag付け。
[dtxmania/dtxmania.git] / 110401(DTXMania089) / SlimDXc_Jun2010(VC++2008) / source / directinput / CapabilitiesDI.h
1 /*\r
2 * Copyright (c) 2007-2010 SlimDX Group\r
3\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
10\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
13\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
20 * THE SOFTWARE.\r
21 */\r
22 #pragma once\r
23 \r
24 #include "Enums.h"\r
25 \r
26 namespace SlimDX\r
27 {\r
28         namespace DirectInput\r
29         {\r
30                 /// <summary>\r
31                 /// Describes a DirectInput device's capabilities.\r
32                 /// </summary>\r
33                 public ref class Capabilities\r
34                 {\r
35                 private:\r
36                         DeviceFlags flags;\r
37                         DeviceType type;\r
38                         int subType;\r
39                         int axesCount;\r
40                         int buttonCount;\r
41                         int povCount;\r
42                         int ffSamplePeriod;\r
43                         int ffMinTimeResolution;\r
44                         int ffDriverVersion;\r
45                         int firmwareRevision;\r
46                         int hardwareRevision;\r
47                         bool hid;\r
48 \r
49                 internal:\r
50                         Capabilities( const DIDEVCAPS &caps );\r
51 \r
52                 public:\r
53                         /// <summary>\r
54                         /// Gets the flags associated with the device.\r
55                         /// </summary>\r
56                         property DeviceFlags Flags\r
57                         {\r
58                                 DeviceFlags get() { return flags; }\r
59                         }\r
60 \r
61                         /// <summary>\r
62                         /// Gets the device type specifier.\r
63                         /// </summary>\r
64                         property DeviceType Type\r
65                         {\r
66                                 DeviceType get() { return type; }\r
67                         }\r
68 \r
69                         /// <summary>\r
70                         /// Gets the device sub-type specifier.\r
71                         /// </summary>\r
72                         property int Subtype\r
73                         {\r
74                                 int get() { return subType; }\r
75                         }\r
76 \r
77                         /// <summary>\r
78                         /// Gets the number of axes available on the device.\r
79                         /// </summary>\r
80                         property int AxesCount\r
81                         {\r
82                                 int get() { return axesCount; }\r
83                         }\r
84 \r
85                         /// <summary>\r
86                         /// Gets the number of buttons available on the device.\r
87                         /// </summary>\r
88                         property int ButtonCount\r
89                         {\r
90                                 int get() { return buttonCount; }\r
91                         }\r
92 \r
93                         /// <summary>\r
94                         /// Gets the number of Point-Of-View controllers available on the device.\r
95                         /// </summary>\r
96                         property int PovCount\r
97                         {\r
98                                 int get() { return povCount; }\r
99                         }\r
100 \r
101                         /// <summary>\r
102                         /// Gets the minimum time between playback of consecutive raw force commands, in microseconds.\r
103                         /// </summary>\r
104                         property int ForceFeedbackSamplePeriod\r
105                         {\r
106                                 int get() { return ffSamplePeriod; }\r
107                         }\r
108 \r
109                         /// <summary>\r
110                         /// Gets the minimum time, in microseconds, that the device can resolve. The device\r
111                         /// rounds any times to the nearest supported increment.\r
112                         /// </summary>\r
113                         property int ForceFeedbackMinimumTimeResolution\r
114                         {\r
115                                 int get() { return ffMinTimeResolution; }\r
116                         }\r
117 \r
118                         /// <summary>\r
119                         /// Gets the driver version number.\r
120                         /// </summary>\r
121                         property int DriverVersion\r
122                         {\r
123                                 int get() { return ffDriverVersion; }\r
124                         }\r
125 \r
126                         /// <summary>\r
127                         /// Gets the firmware revision number.\r
128                         /// </summary>\r
129                         property int FirmwareRevision\r
130                         {\r
131                                 int get() { return firmwareRevision; }\r
132                         }\r
133 \r
134                         /// <summary>\r
135                         /// Gets the hardware revision number.\r
136                         /// </summary>\r
137                         property int HardwareRevision\r
138                         {\r
139                                 int get() { return hardwareRevision; }\r
140                         }\r
141 \r
142                         /// <summary>\r
143                         /// Gets a value indicating whether the device is a Human Interface Device.\r
144                         /// </summary>\r
145                         property bool HumanInterfaceDevice\r
146                         {\r
147                                 bool get() { return hid; }\r
148                         }\r
149                 };\r
150         }\r
151 }