Package net.minecraft.client
Class MouseHelper
java.lang.Object
net.minecraft.client.MouseHelper
-
Field Summary
Modifier and TypeFieldDescriptionprivate double
private double
private double
private int
private int
private int
private boolean
private boolean
private boolean
private boolean
private double
private final Minecraft
private boolean
private double
private final MouseSmoother
private final MouseSmoother
private double
private double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
double
double
void
boolean
boolean
boolean
boolean
private void
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
void
void
setup
(long p_198029_1_) void
double
xpos()
double
ypos()
-
Field Details
-
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
-
smoothTurnY
-
accumulatedDX
private double accumulatedDX -
accumulatedDY
private double accumulatedDY -
accumulatedScroll
private double accumulatedScroll -
lastMouseEventTime
private double lastMouseEventTime -
mouseGrabbed
private boolean mouseGrabbed
-
-
Constructor Details
-
MouseHelper
-
-
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
-
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()
-