示例#1
0
        /// <summary>	
        /// Retrieves information about a device object, such as a button or axis.	
        /// </summary>	
        /// <param name="arg1"><dd> Value that identifies the object whose information is to be retrieved. The value set for this parameter depends on the value specified in the  dwHow parameter.  </dd></param>	
        /// <param name="arg2"><dd> Value that specifies how the  dwObj parameter should be interpreted. The dwHow value can be one of the following:  <dl> <dt><see cref="SharpDX.DirectInput.PropertyHowType.Byoffset"/></dt> <dd>The dwObj parameter is the offset into the current data format of the object whose information is being accessed. </dd> <dt><see cref="SharpDX.DirectInput.PropertyHowType.Byid"/></dt> <dd>The dwObj parameter is the object type/instance identifier. This identifier is returned in the  dwType member of the <see cref="SharpDX.DirectInput.DeviceObjectInstance"/> structure returned from a previous call to the <see cref="SharpDX.DirectInput.Device.EnumObjects"/> method. </dd> <dt><see cref="SharpDX.DirectInput.PropertyHowType.Byusage"/></dt> <dd>The dwObj parameter contains the HID Usage Page and Usage values of the object, combined by the DIMAKEUSAGEDWORD macro.</dd> </dl> </dd></param>	
        /// <returns><dd> Address of a <see cref="SharpDX.DirectInput.DeviceObjectInstance"/> structure to be filled with information about the object. The structure's  dwSize member must be initialized before this method is called.  </dd></returns>	
        /// <remarks>	
        /// <p>For compatibility with DirectX 3, it is also valid to pass a  DIDEVICEOBJECTINSTANCE_DX3 structure with the  dwSize member initialized to  sizeof(DIDEVICEOBJECTINSTANCE_DX3).</p>	
        /// </remarks>	
        /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirectInputDevice8W::GetObjectInfo']/*"/>	
        /// <msdn-id>microsoft.directx_sdk.idirectinputdevice8.idirectinputdevice8.getobjectinfo</msdn-id>	
        /// <unmanaged>HRESULT IDirectInputDevice8W::GetObjectInfo([Out] DIDEVICEOBJECTINSTANCEW* arg0,[In] unsigned int arg1,[In] DIPH arg2)</unmanaged>	
        /// <unmanaged-short>IDirectInputDevice8W::GetObjectInfo</unmanaged-short>	
        internal SharpDX.DirectInput.DeviceObjectInstance GetObjectInfo(int arg1, SharpDX.DirectInput.PropertyHowType arg2) {
            unsafe {
                SharpDX.DirectInput.DeviceObjectInstance arg0;
                var arg0_ = SharpDX.DirectInput.DeviceObjectInstance.__NewNative();
                SharpDX.Result __result__;
                __result__= 
				SharpDX.DirectInput.LocalInterop.Calliint(_nativePointer, &arg0_, arg1, unchecked((int)arg2),((void**)(*(void**)_nativePointer))[14]);		
                arg0 = new SharpDX.DirectInput.DeviceObjectInstance();
                arg0.__MarshalFrom(ref arg0_);
                __result__.CheckError();
                return arg0;
            }
        }
示例#2
0
 public DeviceFoundArguments(IO.Joy.DeviceType type, SharpDX.DirectInput.DeviceObjectInstance instance)
 {
     DeviceType = type;
     Instance   = instance;
 }