39 lines
978 B
C#
Raw Normal View History

2011-11-04 23:51:05 +00:00
using System;
2011-11-14 16:19:58 +00:00
using ANX.Framework.NonXNA;
using ANX.Framework.NonXNA.Development;
2011-11-04 23:51:05 +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-04 23:06:39 +00:00
namespace ANX.Framework.Input
{
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Tested)]
public static class Keyboard
{
private static readonly IKeyboard keyboard;
internal static IntPtr WindowHandle
{
get { return keyboard.WindowHandle; }
set { keyboard.WindowHandle = value; }
}
static Keyboard()
{
keyboard = AddInSystemFactory.Instance.GetDefaultCreator<IInputSystemCreator>().Keyboard;
}
public static KeyboardState GetState()
{
return keyboard.GetState();
}
public static KeyboardState GetState(PlayerIndex playerIndex)
{
return keyboard.GetState(playerIndex);
}
}
2011-11-04 23:06:39 +00:00
}