类 InputEvent.MouseScrollingEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.InputEvent
net.minecraftforge.client.event.InputEvent.MouseScrollingEvent
封闭类:
InputEvent

public static class InputEvent.MouseScrollingEvent extends InputEvent
Fired when a mouse scroll wheel is used outside of a screen and a player is loaded, before being processed by vanilla.

This event is cancellable, and does not have a result. If the event is cancelled, then the mouse scroll event will not be processed further.

This event is fired on the main Forge event bus, only on the logical client.

另请参阅:
  • 字段详细资料

    • scrollDelta

      private final double scrollDelta
    • mouseX

      private final double mouseX
    • mouseY

      private final double mouseY
    • leftDown

      private final boolean leftDown
    • middleDown

      private final boolean middleDown
    • rightDown

      private final boolean rightDown
  • 构造器详细资料

    • MouseScrollingEvent

      @Internal public MouseScrollingEvent(double scrollDelta, boolean leftDown, boolean middleDown, boolean rightDown, double mouseX, double mouseY)
  • 方法详细资料

    • getScrollDelta

      public double getScrollDelta()
      返回 the amount of change / delta of the mouse scroll。
      返回:
      the amount of change / delta of the mouse scroll
    • isLeftDown

      public boolean isLeftDown()
      返回 true if the left mouse button is pressed。
      返回:
      true if the left mouse button is pressed
    • isRightDown

      public boolean isRightDown()
      返回 true if the right mouse button is pressed。
      返回:
      true if the right mouse button is pressed
    • isMiddleDown

      public boolean isMiddleDown()
      返回 true if the middle mouse button is pressed。
      返回:
      true if the middle mouse button is pressed
    • getMouseX

      public double getMouseX()
      返回 the X position of the mouse cursor。
      返回:
      the X position of the mouse cursor
    • getMouseY

      public double getMouseY()
      返回 the Y position of the mouse cursor。
      返回:
      the Y position of the mouse cursor