Exemplo n.º 1
0
        internal void MouseClick(Vector2 Position, MouseButton Button)
        {
            MouseClickInfo info = new MouseClickInfo();

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