Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }