类 ScreenEvent.MouseScrolled

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

public abstract static class ScreenEvent.MouseScrolled 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.
另请参阅:
  • 字段详细资料

    • deltaX

      private final double deltaX
    • deltaY

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

    • MouseScrolled

      @Internal public MouseScrolled(Screen screen, double mouseX, double mouseY, double deltaX, double deltaY)
  • 方法详细资料

    • getDeltaX

      public double getDeltaX()
      返回 the amount of change / delta of the mouse scroll in the vertical direction。
      返回:
      the amount of change / delta of the mouse scroll in the vertical direction
    • getDeltaY

      public double getDeltaY()
      返回 the amount of change / delta of the mouse scroll in the horizontal direction。
      返回:
      the amount of change / delta of the mouse scroll in the horizontal direction