using System; using Microsoft.Xna.Framework.Input; namespace TrueCraft.Client.Input { /// /// Provides the event data for keyboard key events. /// public class KeyboardKeyEventArgs : KeyboardEventArgs { /// /// Gets the key for the event. /// public Keys Key { get; private set; } /// /// Gets whether the key was pressed or released. /// public bool IsPressed { get; private set; } /// /// Creates new keyboard key event data. /// /// The key for the event. /// Whether the key was pressed or released. public KeyboardKeyEventArgs(Keys key, bool isPressed) { Key = key; IsPressed = isPressed; } } }