Class MouseHandler

java.lang.Object
net.minecraft.client.MouseHandler

public class MouseHandler 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 SmoothDouble smoothTurnX
    • smoothTurnY

      private final SmoothDouble smoothTurnY
    • accumulatedDX

      private double accumulatedDX
    • accumulatedDY

      private double accumulatedDY
    • accumulatedScrollX

      private double accumulatedScrollX
    • accumulatedScrollY

      private double accumulatedScrollY
    • lastHandleMovementTime

      private double lastHandleMovementTime
    • mouseGrabbed

      private boolean mouseGrabbed
  • Constructor Details

    • MouseHandler

      public MouseHandler(Minecraft p_91522_)
  • Method Details

    • onPress

      private void onPress(long p_91531_, int p_91532_, int p_91533_, int p_91534_)
    • onScroll

      private void onScroll(long p_91527_, double p_91528_, double p_91529_)
    • onDrop

      private void onDrop(long p_91540_, List<Path> p_91541_)
    • setup

      public void setup(long p_91525_)
    • onMove

      private void onMove(long p_91562_, double p_91563_, double p_91564_)
    • handleAccumulatedMovement

      public void handleAccumulatedMovement()
    • turnPlayer

      private void turnPlayer(double p_330750_)
    • isLeftPressed

      public boolean isLeftPressed()
    • isMiddlePressed

      public boolean isMiddlePressed()
    • isRightPressed

      public boolean isRightPressed()
    • 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()