Class MouseHelper


  • public class MouseHelper
    extends java.lang.Object
    • Field Detail

      • 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
      • accumulatedDX

        private double accumulatedDX
      • accumulatedDY

        private double accumulatedDY
      • accumulatedScroll

        private double accumulatedScroll
      • lastMouseEventTime

        private double lastMouseEventTime
      • mouseGrabbed

        private boolean mouseGrabbed
    • Constructor Detail

      • MouseHelper

        public MouseHelper​(Minecraft p_i47672_1_)
    • Method Detail

      • 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_,
                            java.util.List<java.nio.file.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()