From a71dc9ae0f49c4d18767abf30a6ffd3360b66586 Mon Sep 17 00:00:00 2001 From: "SND\\simsmaster_cp" Date: Thu, 17 Nov 2011 17:05:27 +0000 Subject: [PATCH] Fixed a few warnings. --- ANX.Framework/Content/ResourceContentManager.cs | 1 - ANX.Framework/Storage/StorageDevice.cs | 3 ++- InputSystems/ANX.InputSystem.Windows.Kinect/Kinect.cs | 2 +- .../ANX.RenderSystem.Windows.DX11/GraphicsDeviceWindowsDX11.cs | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ANX.Framework/Content/ResourceContentManager.cs b/ANX.Framework/Content/ResourceContentManager.cs index 85a5a57c..a55e5fba 100644 --- a/ANX.Framework/Content/ResourceContentManager.cs +++ b/ANX.Framework/Content/ResourceContentManager.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; using System.IO; using System.Resources; -using System.IO; #endregion // Using Statements diff --git a/ANX.Framework/Storage/StorageDevice.cs b/ANX.Framework/Storage/StorageDevice.cs index 9f18d130..4a6372b3 100644 --- a/ANX.Framework/Storage/StorageDevice.cs +++ b/ANX.Framework/Storage/StorageDevice.cs @@ -59,8 +59,9 @@ namespace ANX.Framework.Storage private DriveInfo storageDrive; private Func openContainerDelegate = null; - +#pragma warning disable 0067 //This event is never used public static event EventHandler DeviceChanged; +#pragma warning restore 0067 internal StorageDevice(string storagePath) { diff --git a/InputSystems/ANX.InputSystem.Windows.Kinect/Kinect.cs b/InputSystems/ANX.InputSystem.Windows.Kinect/Kinect.cs index ee2a563e..f7f89d32 100644 --- a/InputSystems/ANX.InputSystem.Windows.Kinect/Kinect.cs +++ b/InputSystems/ANX.InputSystem.Windows.Kinect/Kinect.cs @@ -74,7 +74,7 @@ namespace ANX.InputSystem.Windows.Kinect public Kinect() { - pNui = new Runtime(); + pNui = Runtime.Kinects[0]; pNui.Initialize(RuntimeOptions.UseDepthAndPlayerIndex | RuntimeOptions.UseSkeletalTracking | RuntimeOptions.UseColor); pNui.SkeletonEngine.TransformSmooth = true; diff --git a/RenderSystems/ANX.RenderSystem.Windows.DX11/GraphicsDeviceWindowsDX11.cs b/RenderSystems/ANX.RenderSystem.Windows.DX11/GraphicsDeviceWindowsDX11.cs index ac5d65cb..3b2ba8bf 100644 --- a/RenderSystems/ANX.RenderSystem.Windows.DX11/GraphicsDeviceWindowsDX11.cs +++ b/RenderSystems/ANX.RenderSystem.Windows.DX11/GraphicsDeviceWindowsDX11.cs @@ -10,7 +10,6 @@ using ANX.Framework.NonXNA; using ANX.Framework.Graphics; using SharpDX.Direct3D11; using ANX.Framework; -using ANX.Framework.Graphics; using SharpDX.D3DCompiler; #endregion // Using Statements