@Override
	public void mouseDragged(MouseEvent event) {
		JFrame frame = Game.get().display.getFrame();
		float zoomX = (frame.getWidth()-frame.getInsets().left-frame.getInsets().right)/800f;
		float zoomY = (frame.getHeight()-frame.getInsets().top-frame.getInsets().bottom)/800f;
		
		int mouseX = (int) (event.getX()/zoomX);
		int mouseY = (int) (event.getY()/zoomY);
		
		if(mouseX == Game.get().mouseX && mouseY == Game.get().mouseY){
			return;
		}
		
		if(mouseX <800 && mouseX>=0 && mouseY <800 && mouseY>=0){
			Game.get().latestMouseX = Game.get().mouseX;
			Game.get().latestMouseY = Game.get().mouseY;
			Game.get().mouseX = mouseX;
			Game.get().mouseY = mouseY;
		}else{
			Game.get().latestMouseX = -1;
			Game.get().mouseX = -1;
			Game.get().mouseY = -1;
		}
	}