public static void update(float delta) {
        if (Gdx.input.isButtonPressed(Input.Buttons.LEFT)) {
            if (abilityRequesting != null) {
                abilityRequesting.fireAction(Camera.getRealWorldX(), Camera.getRealWorldY());
            }
            Gdx.input.setCursorCatched(true);
        } else if (Gdx.input.isKeyPressed(Input.Keys.ESCAPE)) {
            Gdx.input.setCursorCatched(false);
        }

        if (Gdx.input.isCursorCatched()) {
            Gdx.input.setCursorPosition(Gdx.graphics.getWidth() / 2, Gdx.graphics.getHeight() / 2);

            x += Gdx.input.getDeltaX();
            y += Gdx.input.getDeltaY();
        }

        if (x < 0) {
            x = 0;
        } else if (x > Gdx.graphics.getWidth()) {
            x = Gdx.graphics.getWidth();
        }

        if (y < 0) {
            y = 0;
        } else if (y > Gdx.graphics.getHeight()) {
            y = Gdx.graphics.getHeight();
        }
    }