Class ScreenEvent.MouseScrolled

java.lang.Object
net.minecraftforge.eventbus.api.Event
Direct Known Subclasses:
ScreenEvent.MouseScrolled.Post, ScreenEvent.MouseScrolled.Pre
Enclosing class:
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.
See Also:
  • Field Details

    • deltaX

      private final double deltaX
    • deltaY

      private final double deltaY
  • Constructor Details

    • MouseScrolled

      @Internal public MouseScrolled(Screen screen, double mouseX, double mouseY, double deltaX, double deltaY)
  • Method Details

    • getDeltaX

      public double getDeltaX()
      Returns the amount of change / delta of the mouse scroll in the vertical direction.
      Returns:
      the amount of change / delta of the mouse scroll in the vertical direction
    • getDeltaY

      public double getDeltaY()
      Returns the amount of change / delta of the mouse scroll in the horizontal direction.
      Returns:
      the amount of change / delta of the mouse scroll in the horizontal direction