public class MouseHelper
extends java.lang.Object
コンストラクタと説明 |
---|
MouseHelper(Minecraft minecraftIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
double |
getMouseX() |
double |
getMouseY() |
double |
getXVelocity() |
double |
getYVelocity() |
void |
grabMouse()
Will set the focus to ingame if the Minecraft window is the active with focus.
|
boolean |
isLeftDown() |
boolean |
isMiddleDown() |
boolean |
isMouseGrabbed()
Returns true if the mouse is grabbed.
|
boolean |
isRightDown() |
void |
registerCallbacks(long handle) |
void |
setIgnoreFirstMove() |
void |
ungrabMouse()
Resets the player keystate, disables the ingame focus, and ungrabs the mouse cursor.
|
void |
updatePlayerLook() |
public MouseHelper(Minecraft minecraftIn)
public void registerCallbacks(long handle)
public void updatePlayerLook()
public boolean isLeftDown()
public boolean isRightDown()
public boolean isMiddleDown()
public double getMouseX()
public double getMouseY()
public double getXVelocity()
public double getYVelocity()
public void setIgnoreFirstMove()
public boolean isMouseGrabbed()
public void grabMouse()
public void ungrabMouse()