@Override
    public void input(){

        if(g.ui.key.keyHit()){

            if (g.ui.key.getKey() == KeyEvent.VK_ESCAPE) {

                done = true;
                curserX = -1;
                curserY = -1;
            }
        }

        if((g.ui.mouse.clicked()) && (g.ui.mouse.getMouseButton() == MouseEvent.BUTTON1)){
            done = true;
        }

        if((g.ui.mouse.moved()) && (done != true)){


            if(g.ui.mouse.dragged()){

                if(g.ui.mouse.getMouseButton() == MouseEvent.BUTTON1){

                }else{
                    screenX += lastX - g.ui.mouse.getX();
                    screenY += lastY - g.ui.mouse.getY();

                }
                lastX = g.ui.mouse.getX();
                lastY = g.ui.mouse.getY();
            }

            curserX = ((g.ui.mouse.getX() + screenX) + (g.ui.mouse.getY() + screenY) * 2)/80;
            curserY = ((g.ui.mouse.getY() + screenY) - (g.ui.mouse.getX() + screenX)/2)/40;
        }
    }