2012-08-09 09:45:04 +00:00
|
|
|
#region Using Statements
|
2011-11-08 20:52:48 +00:00
|
|
|
using System;
|
|
|
|
using ANX.Framework.NonXNA;
|
2011-11-09 08:56:37 +00:00
|
|
|
using ANX.Framework.Graphics;
|
2012-10-13 19:43:12 +00:00
|
|
|
using ANX.Framework.NonXNA.Development;
|
2011-11-08 20:52:48 +00:00
|
|
|
|
|
|
|
#endregion // Using Statements
|
|
|
|
|
2012-08-09 09:45:04 +00:00
|
|
|
// 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
|
2011-11-08 20:52:48 +00:00
|
|
|
|
|
|
|
#if XNAEXT
|
|
|
|
|
2011-11-09 08:56:37 +00:00
|
|
|
namespace ANX.Framework.Input.MotionSensing
|
2011-11-08 20:52:48 +00:00
|
|
|
{
|
2012-10-13 19:43:12 +00:00
|
|
|
[PercentageComplete(100)]
|
|
|
|
[TestState(TestStateAttribute.TestState.Untested)]
|
|
|
|
public static class MotionSensingDevice
|
2011-11-08 20:52:48 +00:00
|
|
|
{
|
2012-09-30 07:43:41 +00:00
|
|
|
private static readonly IMotionSensingDevice motionSensingDevice;
|
2011-11-08 20:52:48 +00:00
|
|
|
|
2012-09-30 07:43:41 +00:00
|
|
|
public static GraphicsDevice GraphicsDevice
|
2011-11-08 20:52:48 +00:00
|
|
|
{
|
2012-09-30 07:43:41 +00:00
|
|
|
get { return motionSensingDevice.GraphicsDevice; }
|
|
|
|
set { motionSensingDevice.GraphicsDevice = value; }
|
2011-11-08 20:52:48 +00:00
|
|
|
}
|
|
|
|
|
2012-09-30 07:43:41 +00:00
|
|
|
public static MotionSensingDeviceType DeviceType
|
2011-11-09 08:56:37 +00:00
|
|
|
{
|
2012-09-30 07:43:41 +00:00
|
|
|
get { return motionSensingDevice.DeviceType; }
|
2011-11-09 08:56:37 +00:00
|
|
|
}
|
|
|
|
|
2012-09-30 07:43:41 +00:00
|
|
|
static MotionSensingDevice()
|
2011-11-09 08:56:37 +00:00
|
|
|
{
|
2012-10-13 19:43:12 +00:00
|
|
|
var creator = AddInSystemFactory.Instance.GetDefaultCreator<IInputSystemCreator>();
|
|
|
|
motionSensingDevice = creator.MotionSensingDevice;
|
2011-11-09 08:56:37 +00:00
|
|
|
}
|
2011-11-08 20:52:48 +00:00
|
|
|
|
|
|
|
public static MotionSensingDeviceState GetState()
|
|
|
|
{
|
|
|
|
return motionSensingDevice.GetState();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|