Interface GuiDrag


public interface GuiDrag
Follows the mouse from GuiInput.beginDrag(GuiDrag) until the button is released.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    moved(double x, double y)
     
    default void
    Called once when the drag ends, also when the GUI closes during it.
  • Method Details

    • moved

      void moved(double x, double y)
      Parameters:
      x - Mouse x in GUI-scaled pixels
      y - Mouse y in GUI-scaled pixels
    • released

      default void released()
      Called once when the drag ends, also when the GUI closes during it.