From c6fb1b641e27196cdbe245737b402ce374b73e3a Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 5 Jan 2011 12:56:00 +1300 Subject: [PATCH] Fix MouseButton orthogonality and remove unnecessary winforms dep. --- OpenRA.FileFormats/Graphics/IInputHandler.cs | 21 ++++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/OpenRA.FileFormats/Graphics/IInputHandler.cs b/OpenRA.FileFormats/Graphics/IInputHandler.cs index b3028aa18f..64e42144e6 100755 --- a/OpenRA.FileFormats/Graphics/IInputHandler.cs +++ b/OpenRA.FileFormats/Graphics/IInputHandler.cs @@ -11,7 +11,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Windows.Forms; namespace OpenRA { @@ -43,21 +42,21 @@ namespace OpenRA [Flags] public enum MouseButton { - None, - Left, - Right, - Middle, - WheelDown, - WheelUp + None = 0, + Left = 1, + Right = 2, + Middle = 4, + WheelDown = 8, + WheelUp = 16 } [Flags] public enum Modifiers { - None = (int)Keys.None, - Shift = (int)Keys.Shift, - Alt = (int)Keys.Alt, - Ctrl = (int)Keys.Control, + None = 0, + Shift = 1, + Alt = 2, + Ctrl = 4, } public enum KeyInputEvent { Down, Up };