public final class EmkMouse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BUTTON_LEFT
Main mouse buttons.
|
static int |
BUTTON_MIDDLE
Main mouse buttons.
|
static int |
BUTTON_RIGHT
Main mouse buttons.
|
Modifier and Type | Method and Description |
---|---|
static int |
getDWheel() |
static int |
getDX() |
static int |
getDY() |
static java.util.ArrayList<java.lang.Integer> |
getSimulatedButtonPresses() |
static float |
getX() |
static float |
getY() |
static void |
invokeButton(int button)
Adds the specified button code to a list of simulated button presses that get's injected into
Equilinox' update method next time it executes.
|
static boolean |
isButtonDown(int button)
Determines whether the button with the specified code is held down.
|
public static final int BUTTON_LEFT
public static final int BUTTON_MIDDLE
public static final int BUTTON_RIGHT
public static boolean isButtonDown(int button)
button
- Button code to checkTrue
if button
is held down.public static void invokeButton(int button)
button
- Button code to addpublic static float getX()
public static float getY()
public static int getDX()
public static int getDY()
public static int getDWheel()
public static java.util.ArrayList<java.lang.Integer> getSimulatedButtonPresses()
invokeButton(int)
.