blob: 37b221dcadc17675bb8fd245db67d6fabc64b876 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
namespace V3.Input
{
/// <summary>
/// An event that is sent when a mouse button is pressed or released.
/// </summary>
public interface IMouseEvent
{
/// <summary>
/// The mouse button that was pressed or released.
/// </summary>
MouseButton MouseButton { get; }
/// <summary>
/// The state of the mouse button (pressed or released?).
/// </summary>
ButtonState ButtonState { get; }
/// <summary>
/// The position where the mouse button was pressed the last time.
/// </summary>
Point PositionPressed { get; }
/// <summary>
/// The position where the mouse button was released if this is a
/// release event, null otherwise.
/// </summary>
Point? PositionReleased { get; }
/// <summary>
/// True if PositionReleased is a valid on-screen position, otherwise
/// false.
/// </summary>
bool ReleasedOnScreen { get; }
}
}
|