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 /// Contains properties that define device behavior. These
\r
32 /// properties include input buffer size and axis mode.
\r
34 public ref class DeviceProperties
\r
37 IDirectInputDevice8W *pointer;
\r
40 DeviceProperties( IDirectInputDevice8W *pointer );
\r
44 /// Retrieves the localized key name for the specified keyboard key.
\r
46 System::String^ GetKeyName( Key key );
\r
49 /// Retrieves the scan code for the specified keyboard key.
\r
51 int GetKeyCode( Key key );
\r
54 /// Sets the data range for the device.
\r
56 void SetRange( int lowerRange, int upperRange );
\r
59 /// Gets or sets an application-defined value associated with the device.
\r
61 property System::Object^ ApplicationData
\r
63 [System::Security::Permissions::SecurityPermission( System::Security::Permissions::SecurityAction::LinkDemand, Flags=System::Security::Permissions::SecurityPermissionFlag::UnmanagedCode )]
\r
64 System::Object^ get();
\r
66 [System::Security::Permissions::SecurityPermission( System::Security::Permissions::SecurityAction::LinkDemand, Flags=System::Security::Permissions::SecurityPermissionFlag::UnmanagedCode )]
\r
67 void set( System::Object^ value );
\r
71 /// Gets or sets a value indicating whether device objects are self centering.
\r
73 property bool AutoCenter
\r
76 void set( bool value );
\r
80 /// Gets or sets the axis mode for the device.
\r
82 property DeviceAxisMode AxisMode
\r
84 DeviceAxisMode get();
\r
85 void set( DeviceAxisMode value );
\r
89 /// Gets or sets the buffer input size.
\r
91 property int BufferSize
\r
94 void set( int value );
\r
98 /// Gets or sets the dead zone for a joystick device.
\r
100 property int DeadZone
\r
103 void set( int value );
\r
107 /// Gets or sets the gain of the device for force-feedback effects.
\r
109 property int ForceFeedbackGain
\r
112 void set( int value );
\r
116 /// Gets the memory load for the device.
\r
118 property int MemoryLoad
\r
124 /// Gets the human-readable display name of the port to which the device is connected.
\r
126 property System::String^ PortDisplayName
\r
128 System::String^ get();
\r
132 /// Gets the input granularity for the device.
\r
134 property int Granularity
\r
140 /// Gets the class identifier for the device.
\r
142 property System::Guid ClassGuid
\r
144 System::Guid get();
\r
148 /// Gets the physical interface path to which the device is connected.
\r
150 property System::String^ InterfacePath
\r
152 System::String^ get();
\r
156 /// Gets or sets the friendly instance name of the device.
\r
158 property System::String^ InstanceName
\r
160 System::String^ get();
\r
161 void set( System::String^ value );
\r
165 /// Gets the instance number of a joystick device.
\r
167 property int JoystickId
\r
173 /// Gets or sets the friendly product name of the device.
\r
175 property System::String^ ProductName
\r
177 System::String^ get();
\r
178 void set( System::String^ value );
\r
182 /// Gets or sets the upper range of values that the device can possibly report.
\r
184 property int UpperRange
\r
190 /// Gets or sets the lower range of values that the device can possibly report.
\r
192 property int LowerRange
\r
198 /// Gets or sets the saturation zone of a joystick device.
\r
200 property int Saturation
\r
203 void set( int value );
\r
207 /// Gets the type name of the device.
\r
209 property System::String^ TypeName
\r
211 System::String^ get();
\r
215 /// Gets the user name for a user currently assigned to the device.
\r
217 property System::String^ UserName
\r
219 System::String^ get();
\r
223 /// Gets the vendor identifier.
\r
225 property int VendorId
\r
231 /// Gets the product identifer.
\r
233 property int ProductId
\r