类 ScreenEvent.MouseDragged

java.lang.Object
net.minecraftforge.eventbus.api.Event
直接已知子类:
ScreenEvent.MouseDragged.Post, ScreenEvent.MouseDragged.Pre
封闭类:
ScreenEvent

public abstract static class ScreenEvent.MouseDragged extends ScreenEvent.MouseInput
Fired when the mouse was dragged while a button is being held down. See the two subclasses for listening before and after the normal handling.
另请参阅:
  • 字段详细资料

    • mouseButton

      private final int mouseButton
    • dragX

      private final double dragX
    • dragY

      private final double dragY
  • 构造器详细资料

    • MouseDragged

      @Internal public MouseDragged(Screen screen, double mouseX, double mouseY, int mouseButton, double dragX, double dragY)
  • 方法详细资料

    • getMouseButton

      public int getMouseButton()
      返回 the mouse button's input code。
      返回:
      the mouse button's input code
      另请参阅:
    • getDragX

      public double getDragX()
      返回 amount of mouse drag along the X axis。
      返回:
      amount of mouse drag along the X axis
    • getDragY

      public double getDragY()
      返回 amount of mouse drag along the Y axis。
      返回:
      amount of mouse drag along the Y axis