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; }
}
}