Package net.minecraft.client
Class MouseHelper
- java.lang.Object
-
- net.minecraft.client.MouseHelper
-
public class MouseHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private double
accumulatedDX
private double
accumulatedDY
private double
accumulatedScroll
private int
activeButton
private int
clickDepth
private int
fakeRightMouse
private boolean
ignoreFirstMove
private boolean
isLeftPressed
private boolean
isMiddlePressed
private boolean
isRightPressed
private double
lastMouseEventTime
private Minecraft
minecraft
private boolean
mouseGrabbed
private double
mousePressedTime
private MouseSmoother
smoothTurnX
private MouseSmoother
smoothTurnY
private double
xpos
private double
ypos
-
Constructor Summary
Constructors Constructor Description MouseHelper(Minecraft p_i47672_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cursorEntered()
double
getXVelocity()
double
getYVelocity()
void
grabMouse()
boolean
isLeftPressed()
boolean
isMiddleDown()
boolean
isMouseGrabbed()
boolean
isRightPressed()
private void
onDrop(long p_238228_1_, java.util.List<java.nio.file.Path> p_238228_3_)
private void
onMove(long p_198022_1_, double p_198022_3_, double p_198022_5_)
private void
onPress(long p_198023_1_, int p_198023_3_, int p_198023_4_, int p_198023_5_)
private void
onScroll(long p_198020_1_, double p_198020_3_, double p_198020_5_)
void
releaseMouse()
void
setIgnoreFirstMove()
void
setup(long p_198029_1_)
void
turnPlayer()
double
xpos()
double
ypos()
-
-
-
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
-
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 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()
-
-