/** * Gets the mouse's Y relative to rendering coordinates. * * @return The mouse's Y. */ public int getRenderMouseY() { int height = this.getDisplayHeight() * 240 / this.getDisplayHeight(); return height - InputHelper.getHelper().getMouseY() * height / this.getDisplayHeight() - 1; }
/** * Gets the mouse's X relative to rendering coordinates. * * @return The mouse's X. */ public int getRenderMouseX() { return InputHelper.getHelper().getMouseX() * (this.getDisplayWidth() * 240 / this.getDisplayHeight()) / this.getDisplayWidth(); }