Class MouseHelper

java.lang.Object
net.minecraft.client.MouseHelper

public class MouseHelper extends Object
  • Field Details

    • minecraft

      private final Minecraft minecraft
    • isLeftPressed

      private boolean isLeftPressed
    • isMiddlePressed

      private boolean isMiddlePressed
    • isRightPressed

      private boolean isRightPressed
    • xpos

      private double xpos
    • ypos

      private double ypos
    • fakeRightMouse

      private int fakeRightMouse
    • activeButton

      private int activeButton
    • ignoreFirstMove

      private boolean ignoreFirstMove
    • clickDepth

      private int clickDepth
    • mousePressedTime

      private double mousePressedTime
    • smoothTurnX

      private final MouseSmoother smoothTurnX
    • smoothTurnY

      private final MouseSmoother smoothTurnY
    • accumulatedDX

      private double accumulatedDX
    • accumulatedDY

      private double accumulatedDY
    • accumulatedScroll

      private double accumulatedScroll
    • lastMouseEventTime

      private double lastMouseEventTime
    • mouseGrabbed

      private boolean mouseGrabbed
  • Constructor Details

    • MouseHelper

      public MouseHelper(Minecraft p_i47672_1_)
  • Method Details

    • onPress

      private void onPress(long p_198023_1_, int p_198023_3_, int p_198023_4_, int p_198023_5_)
    • onScroll

      private void onScroll(long p_198020_1_, double p_198020_3_, double p_198020_5_)
    • onDrop

      private void onDrop(long p_238228_1_, List<Path> p_238228_3_)
    • setup

      public void setup(long p_198029_1_)
    • onMove

      private void onMove(long p_198022_1_, double p_198022_3_, double p_198022_5_)
    • turnPlayer

      public void turnPlayer()
    • isLeftPressed

      public boolean isLeftPressed()
    • isRightPressed

      public boolean isRightPressed()
    • isMiddleDown

      public boolean isMiddleDown()
    • xpos

      public double xpos()
    • ypos

      public double ypos()
    • getXVelocity

      public double getXVelocity()
    • getYVelocity

      public double getYVelocity()
    • setIgnoreFirstMove

      public void setIgnoreFirstMove()
    • isMouseGrabbed

      public boolean isMouseGrabbed()
    • grabMouse

      public void grabMouse()
    • releaseMouse

      public void releaseMouse()
    • cursorEntered

      public void cursorEntered()