internal void MouseClick(Vector2 Position, MouseButton Button) { MouseClickInfo info = new MouseClickInfo(); info.Position = new Vector2(Position); info.Button = Button; mouse.AddClick(info); }
/// <summary> /// thread-safe /// </summary> /// <param name="click"></param> public void AddClick(MouseClickInfo click) { lock (this) clicks.Add(click); }