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
28 namespace DirectInput
\r
31 /// Describes a DirectInput device's capabilities.
\r
33 public ref class Capabilities
\r
43 int ffMinTimeResolution;
\r
44 int ffDriverVersion;
\r
45 int firmwareRevision;
\r
46 int hardwareRevision;
\r
50 Capabilities( const DIDEVCAPS &caps );
\r
54 /// Gets the flags associated with the device.
\r
56 property DeviceFlags Flags
\r
58 DeviceFlags get() { return flags; }
\r
62 /// Gets the device type specifier.
\r
64 property DeviceType Type
\r
66 DeviceType get() { return type; }
\r
70 /// Gets the device sub-type specifier.
\r
72 property int Subtype
\r
74 int get() { return subType; }
\r
78 /// Gets the number of axes available on the device.
\r
80 property int AxesCount
\r
82 int get() { return axesCount; }
\r
86 /// Gets the number of buttons available on the device.
\r
88 property int ButtonCount
\r
90 int get() { return buttonCount; }
\r
94 /// Gets the number of Point-Of-View controllers available on the device.
\r
96 property int PovCount
\r
98 int get() { return povCount; }
\r
102 /// Gets the minimum time between playback of consecutive raw force commands, in microseconds.
\r
104 property int ForceFeedbackSamplePeriod
\r
106 int get() { return ffSamplePeriod; }
\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
113 property int ForceFeedbackMinimumTimeResolution
\r
115 int get() { return ffMinTimeResolution; }
\r
119 /// Gets the driver version number.
\r
121 property int DriverVersion
\r
123 int get() { return ffDriverVersion; }
\r
127 /// Gets the firmware revision number.
\r
129 property int FirmwareRevision
\r
131 int get() { return firmwareRevision; }
\r
135 /// Gets the hardware revision number.
\r
137 property int HardwareRevision
\r
139 int get() { return hardwareRevision; }
\r
143 /// Gets a value indicating whether the device is a Human Interface Device.
\r
145 property bool HumanInterfaceDevice
\r
147 bool get() { return hid; }
\r