mirror of
https://github.com/Memorix101/UnityXNA/
synced 2024-12-30 15:25:35 +01:00
24 lines
473 B
C#
24 lines
473 B
C#
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
|
||
|
namespace Microsoft.Xna.Framework.Input
|
||
|
{
|
||
|
public class KeyboardState
|
||
|
{
|
||
|
private bool[] keyStates;
|
||
|
|
||
|
public KeyboardState(bool[] keyStates)
|
||
|
{
|
||
|
// TODO: Complete member initialization
|
||
|
this.keyStates = keyStates;
|
||
|
}
|
||
|
|
||
|
internal bool IsKeyDown(Keys keys)
|
||
|
{
|
||
|
return keyStates[(int)keys];
|
||
|
}
|
||
|
}
|
||
|
}
|