using Microsoft.Xna.Framework.Input; namespace V3.Input.Internal { /// /// Default implementation of an event that is triggered if a key is /// pressed or released on the keyboard. /// internal sealed class KeyEvent : IKeyEvent { /// /// The key that was pressed or released. /// public Keys Key { get; } /// /// The type of the event (key pressed or released?). /// public KeyState KeyState { get; } /// /// Creates a new key event with the given data. /// /// the key that was pressed or released /// the type of the event (presesd or /// released?) public KeyEvent(Keys key, KeyState keyState) { Key = key; KeyState = keyState; } } }