public static Vector2 getCursorPosition(final Vector2 result) {
        return result.set(Gdx.input.getX(), Gdx.input.getY());
    }
public static Vector2 getCursorPosition ( final Vector2 result ) { return result . set ( Gdx . input . getX ( ) , Gdx . input . getY ( ) ) ; }
@param result will be modified and returned.
@return the passed {@link Vector2} storing current cursor position.