net.minecraft.client

public class Mouse

net.minecraft.client.MouseHandler
net.minecraft.class_312
net.minecraft.client.Mouse

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_52126
LOGGER
public static final long
DOUBLE_CLICK_THRESHOLD_MS
field_61505
DOUBLE_CLICK_THRESHOLD_MS
private final MinecraftClient
minecraft
field_1779
client
private boolean
isLeftPressed
field_1791
leftButtonClicked
private boolean
isMiddlePressed
field_1790
middleButtonClicked
private boolean
isRightPressed
field_1788
rightButtonClicked
private double
xpos
field_1795
x
private double
ypos
field_1794
y
private Mouse$MouseClickTime
lastClick
field_64192
lastMouseClick
protected int
lastClickButton
field_61507
lastMouseButton
private MouseInput
activeButton
field_1780
activeButton
private boolean
ignoreFirstMove
field_1784
hasResolutionChanged
private double
mousePressedTime
field_1792
glfwTime
private final Smoother
smoothTurnX
field_1793
cursorXSmoother
private final Smoother
smoothTurnY
field_1782
cursorYSmoother
private double
accumulatedDX
field_1789
cursorDeltaX
private double
accumulatedDY
field_1787
cursorDeltaY
private final Scroller
scrollWheelHandler
field_52757
scroller
private double
lastHandleMovementTime
field_47842
lastTickTime
private boolean
mouseGrabbed
field_1783
cursorLocked

Constructor summary

ModifierConstructor
public (MinecraftClient client)

Method summary

Modifier and TypeMethod
public void
onButton(long handle, MouseButtonInfo rawButtonInfo, int action)
method_1601(long arg0, class_11910 arg1, int arg2)
onMouseButton(long window, MouseInput input, int action)
public void
fillMousePositionDetails(CrashReportCategory category, Window window)
method_68882(class_129 arg0, class_1041 arg1)
addCrashReportSection(CrashReportSection section, Window window)
public void
onScroll(long handle, double xoffset, double yoffset)
method_1598(long arg0, double arg1, double arg2)
onMouseScroll(long window, double horizontal, double vertical)
public void
onDrop(long handle, List<String> rawPaths)
method_29616(long arg0, List<String> arg1)
onFilesDropped(long window, List<String> files)
public void
onMove(long handle, double xpos, double ypos, double xrel, double yrel)
method_1600(long arg0, double arg1, double arg2, double arg3, double arg4)
onCursorPos(long window, double x, double y, double dx, double dy)
public void
handleAccumulatedMovement()
method_55793()
tick()
public static double
getScaledXPos(Window window, double x)
method_68880(class_1041 arg0, double arg1)
scaleX(Window window, double x)
public double
getScaledXPos(Window window)
method_68879(class_1041 arg0)
getScaledX(Window window)
public static double
getScaledYPos(Window window, double y)
method_68884(class_1041 arg0, double arg1)
scaleY(Window window, double y)
public double
getScaledYPos(Window window)
method_68883(class_1041 arg0)
getScaledY(Window window)
private void
turnPlayer(double mousea)
method_1606(double arg0)
updateMouse(double timeDelta)
public boolean
isLeftPressed()
method_1608()
wasLeftButtonClicked()
public boolean
isMiddlePressed()
method_35707()
wasMiddleButtonClicked()
public boolean
isRightPressed()
method_1609()
wasRightButtonClicked()
public double
xpos()
method_1603()
getX()
public double
ypos()
method_1604()
getY()
public void
setIgnoreFirstMove()
method_1599()
onResolutionChanged()
public void
resyncMousePosition()
method_1_10225()
updatePosition()
public boolean
isMouseGrabbed()
method_1613()
isCursorLocked()
public void
grabMouse()
method_1612()
lockCursor()
public void
releaseMouse()
method_1610()
unlockCursor()
public void
cursorEntered()
method_30134()
setResolutionChanged()
public void
drawDebugMouseInfo(Font font, GuiGraphicsExtractor graphics)
method_68881(class_327 arg0, class_332 arg1)
drawScaledPos(TextRenderer textRenderer, DrawContext context)
private static String
lambda$fillMousePositionDetails$1(Window arg0)
method_68885(class_1041 arg0)
method_68885(Window arg0)
private String
lambda$fillMousePositionDetails$0(Window arg0)
method_68886(class_1041 arg0)
method_68886(Window arg0)