Fix MouseButton orthogonality and remove unnecessary winforms dep.

This commit is contained in:
Paul Chote
2011-01-05 12:56:00 +13:00
parent 6998871adf
commit c6fb1b641e

View File

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