This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
gwen-dotnet/Gwen/Input/KeyData.cs

25 lines
550 B
C#
Raw Normal View History

using System;
using Gwen.Control;
namespace Gwen.Input
{
/// <summary>
/// Keyboard state.
/// </summary>
public class KeyData
{
public readonly bool[] KeyState;
public readonly float [] NextRepeat;
public Base Target;
public bool LeftMouseDown;
public bool RightMouseDown;
public KeyData()
{
KeyState = new bool[(int)Key.Count];
NextRepeat = new float[(int)Key.Count];
// everything is initialized to 0 by default
}
}
}