From ced3d03bdb3ce866d832e03fb212865140905a9a Mon Sep 17 00:00:00 2001 From: Thomas Leyh Date: Sun, 24 Jul 2016 08:14:18 +0200 Subject: Add project files. --- V3/Input/IKeyEvent.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 V3/Input/IKeyEvent.cs (limited to 'V3/Input/IKeyEvent.cs') diff --git a/V3/Input/IKeyEvent.cs b/V3/Input/IKeyEvent.cs new file mode 100644 index 0000000..42b99c6 --- /dev/null +++ b/V3/Input/IKeyEvent.cs @@ -0,0 +1,20 @@ +using Microsoft.Xna.Framework.Input; + +namespace V3.Input +{ + /// + /// An event that is triggered if a key is pressed or released on the + /// keyboard. + /// + public interface IKeyEvent + { + /// + /// The key that was pressed or released. + /// + Keys Key { get; } + /// + /// The type of the event (key pressed or released?). + /// + KeyState KeyState { get; } + } +} \ No newline at end of file -- cgit v1.2.1