hmlendea_nucixna_input/NuciXNA.Input/KeyboardKeyEvent.cs
using Microsoft.Xna.Framework.Input;

namespace NuciXNA.Input
{
    /// <summary>
    /// Keyboard key event handler.
    /// </summary>
    public delegate void KeyboardKeyEventHandler(object sender, KeyboardKeyEventArgs e);

    /// <summary>
    /// Keyboard key event arguments.
    /// </summary>
    public class KeyboardKeyEventArgs
    {
        /// <summary>
        /// Gets the key.
        /// </summary>
        /// <value>The key.</value>
        public Keys Key { get; private set; }

        /// <summary>
        /// Gets the state of the key.
        /// </summary>
        /// <value>The state of the key.</value>
        public ButtonState KeyState { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="KeyboardKeyEventArgs"/> class.
        /// </summary>
        /// <param name="key">Key.</param>
        /// <param name="keyState">Key state.</param>
        public KeyboardKeyEventArgs(Keys key, ButtonState keyState)
        {
            Key = key;
            KeyState = keyState;
        }
    }
}
