mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
17 lines
538 B
C#
17 lines
538 B
C#
using Microsoft.Xna.Framework.Input;
|
|
|
|
namespace MonoGame.Extended.Input
|
|
{
|
|
public static class KeyboardExtended
|
|
{
|
|
private static KeyboardState _currentKeyboardState;
|
|
private static KeyboardState _previousKeyboardState;
|
|
|
|
public static KeyboardStateExtended GetState()
|
|
{
|
|
_previousKeyboardState = _currentKeyboardState;
|
|
_currentKeyboardState = Keyboard.GetState();
|
|
return new KeyboardStateExtended(_currentKeyboardState, _previousKeyboardState);
|
|
}
|
|
}
|
|
} |