private void MouseEventHandler(MouseEventData mouseData)
 {
     KeysMappingSingleton.Instance.UpdateMouse(mouseData.X, mouseData.Y, mouseData.MouseDown);
     if (_prevMouse == mouseData.MouseDown)
     {
         MouseMoveHandler(mouseData.X, mouseData.Y, mouseData.MouseDown);
     }
     else
     {
         if (false == mouseData.MouseDown)
             MouseUpHandler(mouseData.X, mouseData.Y);
         else
             MouseDownHandler(mouseData.X, mouseData.Y);
     }
     _prevMouse = mouseData.MouseDown;
 }
 public void MouseMove(int x, int y, bool isMouseDown, bool shiftDown, bool controlDown)
 {
     _lastData = new MouseEventData(x, y, isMouseDown, shiftDown, controlDown);
     AddData(_lastData);
 }
 public void MouseUp(int x, int y, bool shiftDown, bool controlDown)
 {
     _lastData = new MouseEventData(x, y, false, shiftDown, controlDown);
     AddData(_lastData);
 }
 public void MouseDown(int x, int y, int clicks, bool shiftDown, bool controlDown)
 {
     _lastData = new MouseEventData(x, y, clicks, true, shiftDown, controlDown);
     AddData(_lastData);
 }