示例#1
0
        internal void MouseClick(Vector2 Position, MouseButton Button)
        {
            MouseClickInfo info = new MouseClickInfo();

            info.Position = new Vector2(Position);
            info.Button   = Button;
            mouse.AddClick(info);
        }
示例#2
0
 /// <summary>
 /// thread-safe
 /// </summary>
 /// <param name="click"></param>
 public void AddClick(MouseClickInfo click)
 {
     lock (this)
         clicks.Add(click);
 }