Fix MouseButton orthogonality and remove unnecessary winforms dep.
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace OpenRA
|
namespace OpenRA
|
||||||
{
|
{
|
||||||
@@ -43,21 +42,21 @@ namespace OpenRA
|
|||||||
[Flags]
|
[Flags]
|
||||||
public enum MouseButton
|
public enum MouseButton
|
||||||
{
|
{
|
||||||
None,
|
None = 0,
|
||||||
Left,
|
Left = 1,
|
||||||
Right,
|
Right = 2,
|
||||||
Middle,
|
Middle = 4,
|
||||||
WheelDown,
|
WheelDown = 8,
|
||||||
WheelUp
|
WheelUp = 16
|
||||||
}
|
}
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum Modifiers
|
public enum Modifiers
|
||||||
{
|
{
|
||||||
None = (int)Keys.None,
|
None = 0,
|
||||||
Shift = (int)Keys.Shift,
|
Shift = 1,
|
||||||
Alt = (int)Keys.Alt,
|
Alt = 2,
|
||||||
Ctrl = (int)Keys.Control,
|
Ctrl = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum KeyInputEvent { Down, Up };
|
public enum KeyInputEvent { Down, Up };
|
||||||
|
|||||||
Reference in New Issue
Block a user