Ejemplo n.º 1
0
 public TranslatedMouse(IMouse mouse, int xOffset, int yOffset)
 {
     this.x            = mouse.GetX() + xOffset;
     this.y            = mouse.GetY() + yOffset;
     this.pressedLeft  = mouse.IsLeftMouseButtonPressed();
     this.pressedRight = mouse.IsRightMouseButtonPressed();
 }
Ejemplo n.º 2
0
 public CopiedMouse(IMouse mouse)
 {
     this.x          = mouse.GetX();
     this.y          = mouse.GetY();
     this.leftMouse  = mouse.IsLeftMouseButtonPressed();
     this.rightMouse = mouse.IsRightMouseButtonPressed();
 }