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
24 #include "../multimedia/Enums.h"
\r
29 namespace DirectInput
\r
32 /// Contains information about a device's identity.
\r
34 public ref class DeviceInstance
\r
37 System::Guid instanceGuid;
\r
38 System::Guid productGuid;
\r
39 System::Guid ffDriverGuid;
\r
42 System::String^ instanceName;
\r
43 System::String^ productName;
\r
44 SlimDX::Multimedia::UsageId usage;
\r
45 SlimDX::Multimedia::UsagePage usagePage;
\r
49 DeviceInstance( const DIDEVICEINSTANCE &deviceInstance );
\r
53 /// Gets the unique identifier for the instance of the device. Instance Guids are
\r
54 /// specific to a particular computer.
\r
56 property System::Guid InstanceGuid
\r
58 System::Guid get() { return instanceGuid; }
\r
62 /// Gets the unique identifier for the product. This identifier is established
\r
63 /// by the manufacturer of the device.
\r
65 property System::Guid ProductGuid
\r
67 System::Guid get() { return productGuid; }
\r
71 /// Gets the unique identifier for the driver being used for force-feedback. The
\r
72 /// driver's manufacturer establishes this identifier.
\r
74 property System::Guid ForceFeedbackDriverGuid
\r
76 System::Guid get() { return ffDriverGuid; }
\r
80 /// Gets the main device type specifier.
\r
82 property DeviceType Type
\r
84 DeviceType get() { return type; }
\r
88 /// Gets the secondary device type specifier.
\r
90 property int Subtype
\r
92 int get() { return subType; }
\r
96 /// Gets the friendly name for the instance.
\r
98 property System::String^ InstanceName
\r
100 System::String^ get() { return instanceName; }
\r
104 /// Gets the friendly name for the product.
\r
106 property System::String^ ProductName
\r
108 System::String^ get() { return productName; }
\r
112 /// If the device is a Human Interface Device, this member contains
\r
113 /// the HID usage code.
\r
115 property SlimDX::Multimedia::UsageId UsageId
\r
117 SlimDX::Multimedia::UsageId get() { return usage; }
\r
121 /// If the device is a Human Interface Device, this member contains
\r
122 /// the HID usage page code.
\r
124 property SlimDX::Multimedia::UsagePage UsagePage
\r
126 SlimDX::Multimedia::UsagePage get() { return usagePage; }
\r
130 /// Gets a value indicating whether the device is a Human Interface Device.
\r
132 property bool HumanInterfaceDevice
\r
134 bool get() { return hid; }
\r