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/IMouseEvent.cs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 V3/Input/IMouseEvent.cs (limited to 'V3/Input/IMouseEvent.cs') diff --git a/V3/Input/IMouseEvent.cs b/V3/Input/IMouseEvent.cs new file mode 100644 index 0000000..37b221d --- /dev/null +++ b/V3/Input/IMouseEvent.cs @@ -0,0 +1,34 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Input; + +namespace V3.Input +{ + /// + /// An event that is sent when a mouse button is pressed or released. + /// + public interface IMouseEvent + { + /// + /// The mouse button that was pressed or released. + /// + MouseButton MouseButton { get; } + /// + /// The state of the mouse button (pressed or released?). + /// + ButtonState ButtonState { get; } + /// + /// The position where the mouse button was pressed the last time. + /// + Point PositionPressed { get; } + /// + /// The position where the mouse button was released if this is a + /// release event, null otherwise. + /// + Point? PositionReleased { get; } + /// + /// True if PositionReleased is a valid on-screen position, otherwise + /// false. + /// + bool ReleasedOnScreen { get; } + } +} -- cgit v1.2.1