#region Copyright & License Information /* * Copyright 2007-2010 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation. For more information, * see LICENSE. */ #endregion using System; using System.Windows.Forms; namespace OpenRA { public struct MouseInput { public MouseInputEvent Event; public int2 Location; public MouseButton Button; public Modifiers Modifiers; } public enum MouseInputEvent { Down, Move, Up }; [Flags] public enum MouseButton { None = (int)MouseButtons.None, Left = (int)MouseButtons.Left, Right = (int)MouseButtons.Right, Middle = (int)MouseButtons.Middle, } [Flags] public enum Modifiers { None = (int)Keys.None, Shift = (int)Keys.Shift, Alt = (int)Keys.Alt, Ctrl = (int)Keys.Control, } public struct KeyInput { public char KeyChar; public string KeyName; public Modifiers Modifiers; public int VirtKey; } }