diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2014-12-22 08:08:36 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2014-12-22 08:08:36 +0100 |
| commit | e8b13fbea6cab4f01af769a1246c49c588fa2f3e (patch) | |
| tree | 649f51c9c995c5f0c106ce3c60bc99fd364b1368 /src/Mouse.cs | |
| parent | 1753010a7b08f29f425356171f78817dc8c6e7f4 (diff) | |
CompilerServices for EventHandler statements in XML attributes
Improve code formatting
debug
Diffstat (limited to 'src/Mouse.cs')
| -rw-r--r-- | src/Mouse.cs | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/Mouse.cs b/src/Mouse.cs deleted file mode 100644 index 12703668..00000000 --- a/src/Mouse.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace go
-{
- public enum MouseButtonStates
- {
- Released,
- Pressed
- }
-
- public static class Mouse
- {
- static Point _position;
- static Point _lastPosition;
- static Point _delta;
- static int _wheelDelta;
-
- public static Point Position
- {
- get { return _position; }
- set
- {
- _lastPosition = _position;
- _position = value;
- _delta = new Point(_lastPosition.X - _position.X, _lastPosition.Y - _position.Y);
- }
- }
- public static Point LastPosition
- {
- get { return _lastPosition; }
- }
- public static Point Delta
- {
- get { return _delta; }
- }
- public static int WheelDelta {
- get { return _wheelDelta; }
- set { _wheelDelta = value; }
- }
-
- public static int X
- {
- get { return _position.X; }
- }
- public static int Y
- {
- get { return _position.Y; }
- }
-
- public static MouseButtonStates LeftButton = MouseButtonStates.Released;
- public static MouseButtonStates RightButton = MouseButtonStates.Released;
- public static MouseButtonStates MiddleButton = MouseButtonStates.Released;
-
- }
-}
|