@Environment(value=CLIENT) public class InputUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InputUtil.Key |
static class |
InputUtil.Type |
Modifier and Type | Field and Description |
---|---|
private static int |
GLFW_RAW_MOUSE_MOTION |
private static MethodHandle |
GLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLE |
static InputUtil.Key |
UNKNOWN_KEY |
Constructor and Description |
---|
InputUtil() |
Modifier and Type | Method and Description |
---|---|
static InputUtil.Key |
fromKeyCode(int keyCode,
int scanCode) |
static InputUtil.Key |
fromTranslationKey(String translationKey) |
static boolean |
isKeyPressed(long handle,
int code) |
static boolean |
isRawMouseMotionSupported() |
static void |
setCursorParameters(long handler,
int int2,
double double2,
double double3) |
static void |
setKeyboardCallbacks(long handle,
org.lwjgl.glfw.GLFWKeyCallbackI keyCallback,
org.lwjgl.glfw.GLFWCharModsCallbackI charModsCallback) |
static void |
setMouseCallbacks(long handle,
org.lwjgl.glfw.GLFWCursorPosCallbackI cursorPosCallback,
org.lwjgl.glfw.GLFWMouseButtonCallbackI mouseButtonCallback,
org.lwjgl.glfw.GLFWScrollCallbackI scrollCallback,
org.lwjgl.glfw.GLFWDropCallbackI gLFWDropCallbackI) |
static void |
setRawMouseMotionMode(long window,
boolean value) |
@Nullable private static final MethodHandle GLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLE
private static final int GLFW_RAW_MOUSE_MOTION
public static final InputUtil.Key UNKNOWN_KEY
public static InputUtil.Key fromKeyCode(int keyCode, int scanCode)
public static InputUtil.Key fromTranslationKey(String translationKey)
public static boolean isKeyPressed(long handle, int code)
public static void setKeyboardCallbacks(long handle, org.lwjgl.glfw.GLFWKeyCallbackI keyCallback, org.lwjgl.glfw.GLFWCharModsCallbackI charModsCallback)
public static void setMouseCallbacks(long handle, org.lwjgl.glfw.GLFWCursorPosCallbackI cursorPosCallback, org.lwjgl.glfw.GLFWMouseButtonCallbackI mouseButtonCallback, org.lwjgl.glfw.GLFWScrollCallbackI scrollCallback, org.lwjgl.glfw.GLFWDropCallbackI gLFWDropCallbackI)
public static void setCursorParameters(long handler, int int2, double double2, double double3)
public static boolean isRawMouseMotionSupported()
public static void setRawMouseMotionMode(long window, boolean value)