@Override
    public void mousePressed(MouseEvent e) {
       
        if (pointer.world==null)
        {
            return;
        }
       int button = e.getButton();
       double scale = pointer.owner.getHeight()/300d;
       if (pointer.world!=null){
       pointer.world.mouseX = (int)((e.getX()+getStuff())/scale);
       pointer.world.mouseY = (int)(e.getY()/scale);
       pointer.world.pressX = pointer.world.mouseX;
       pointer.world.pressY = pointer.world.mouseY;}
     switch (button)
       {

           default:
           case MouseEvent.BUTTON1:
                pointer.world.MB1 = true;
//                if (pointer.world.pressX>pointer.world.x)
//                {
//                    pointer.world.left = 1;
//                }
//                else
//                {
//                    pointer.world.left = -1;
//                }
           break;
           case MouseEvent.BUTTON3:
              // ground.ShowData();
               pointer.world.MB3 = true;
           break;
           case MouseEvent.BUTTON2:
               pointer.world.MB2 = true;
           break;
       }
    }