net.minecraft.client

public class Mouse

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

Field summary

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

Constructor summary

ModifierConstructor
public (MinecraftClient client)

Method summary

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