Package net.minecraft.client
Class MouseHandler
java.lang.Object
net.minecraft.client.MouseHandler
-
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 SmoothDouble
private final SmoothDouble
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_91562_, double p_91563_, double p_91564_) private void
onPress
(long p_91531_, int p_91532_, int p_91533_, int p_91534_) private void
onScroll
(long p_91527_, double p_91528_, double p_91529_) void
void
void
setup
(long p_91525_) 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
-
MouseHandler
-
-
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
-
setup
public void setup(long p_91525_) -
onMove
private void onMove(long p_91562_, double p_91563_, double p_91564_) -
turnPlayer
public void turnPlayer() -
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()
-