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
field_61505
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 int
fakeRightMouse
field_1781
controlLeftClicks
private MouseInput
activeButton
field_1780
activeButton
private boolean
ignoreFirstMove
field_1784
hasResolutionChanged
private int
clickDepth
field_1796
touchHoldTime
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
private void
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)
method_74190(class_11910 arg0, boolean arg1)
modifyMouseInput(MouseInput input, boolean pressed)
public void
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)
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)
method_29616(long arg0, List<Path> arg1, int arg2)
onFilesDropped(long window, List<Path> paths, int invalidFilesCount)
public void
setup(Window window)
method_1607(class_1041 arg0)
setup(Window window)
private void
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()
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 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, GuiGraphics graphics)
method_68881(class_327 arg0, class_332 arg1)
drawScaledPos(TextRenderer textRenderer, DrawContext context)
private void
lambda$setup$9(long arg0, int arg1, long arg2)
method_29615(long arg0, int arg1, long arg2)
method_29615(long window, int count, long names)
private void
lambda$setup$8(long arg0, List arg1, int arg2)
method_29617(long arg0, List arg1, int arg2)
method_29617(long arg0, List arg1, int arg2)
private void
lambda$setup$7(long arg0, double arg1, double arg2)
method_22685(long arg0, double arg1, double arg2)
method_22685(long window, double offsetX, double offsetY)
private void
lambda$setup$6(long arg0, double arg1, double arg2)
method_22687(long arg0, double arg1, double arg2)
method_22687(long arg0, double arg1, double arg2)
private void
lambda$setup$5(long arg0, int arg1, int arg2, int arg3)
method_22684(long arg0, int arg1, int arg2, int arg3)
method_22684(long window, int button, int action, int modifiers)
private void
lambda$setup$4(long arg0, MouseButtonInfo arg1, int arg2)
method_22686(long arg0, class_11910 arg1, int arg2)
method_22686(long arg0, MouseInput arg1, int arg2)
private void
lambda$setup$3(long arg0, double arg1, double arg2)
method_22688(long arg0, double arg1, double arg2)
method_22688(long window, double x, double y)
private void
lambda$setup$2(long arg0, double arg1, double arg2)
method_22689(long arg0, double arg1, double arg2)
method_22689(long arg0, double arg1, double arg2)
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)