2015-03-15 01:11:18 +01:00

44 lines
1.2 KiB
C#

#region Using Statements
using System;
using ANX.Framework.NonXNA;
using ANX.Framework.Graphics;
#endregion // Using Statements
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
#if XNAEXT
namespace ANX.Framework.Input.MotionSensing
{
public class MotionSensingDevice
{
private static readonly IMotionSensingDevice motionSensingDevice;
public static GraphicsDevice GraphicsDevice
{
get { return motionSensingDevice.GraphicsDevice; }
set { motionSensingDevice.GraphicsDevice = value; }
}
public static MotionSensingDeviceType DeviceType
{
get { return motionSensingDevice.DeviceType; }
}
static MotionSensingDevice()
{
motionSensingDevice = AddInSystemFactory.Instance.GetDefaultCreator<IInputSystemCreator>().MotionSensingDevice;
}
public static MotionSensingDeviceState GetState()
{
return motionSensingDevice.GetState();
}
}
}
#endif