Package net.minecraft.client.util
Class InputMappings
- java.lang.Object
-
- net.minecraft.client.util.InputMappings
-
public class InputMappings extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InputMappings.Input
static class
InputMappings.Type
-
Field Summary
Fields Modifier and Type Field Description private static int
GLFW_RAW_MOUSE_MOTION
private static java.lang.invoke.MethodHandle
glfwRawMouseMotionSupported
static InputMappings.Input
UNKNOWN
-
Constructor Summary
Constructors Constructor Description InputMappings()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputMappings.Input
getKey(int p_197954_0_, int p_197954_1_)
static InputMappings.Input
getKey(java.lang.String p_197955_0_)
static void
grabOrReleaseMouse(long p_216504_0_, int p_216504_2_, double p_216504_3_, double p_216504_5_)
static boolean
isKeyDown(long p_216506_0_, int p_216506_2_)
static boolean
isRawMouseInputSupported()
static void
setupKeyboardCallbacks(long p_216505_0_, org.lwjgl.glfw.GLFWKeyCallbackI p_216505_2_, org.lwjgl.glfw.GLFWCharModsCallbackI p_216505_3_)
static void
setupMouseCallbacks(long p_216503_0_, org.lwjgl.glfw.GLFWCursorPosCallbackI p_216503_2_, org.lwjgl.glfw.GLFWMouseButtonCallbackI p_216503_3_, org.lwjgl.glfw.GLFWScrollCallbackI p_216503_4_, org.lwjgl.glfw.GLFWDropCallbackI p_216503_5_)
static void
updateRawMouseInput(long p_224791_0_, boolean p_224791_2_)
-
-
-
Field Detail
-
glfwRawMouseMotionSupported
@Nullable private static final java.lang.invoke.MethodHandle glfwRawMouseMotionSupported
-
GLFW_RAW_MOUSE_MOTION
private static final int GLFW_RAW_MOUSE_MOTION
-
UNKNOWN
public static final InputMappings.Input UNKNOWN
-
-
Method Detail
-
getKey
public static InputMappings.Input getKey(int p_197954_0_, int p_197954_1_)
-
getKey
public static InputMappings.Input getKey(java.lang.String p_197955_0_)
-
isKeyDown
public static boolean isKeyDown(long p_216506_0_, int p_216506_2_)
-
setupKeyboardCallbacks
public static void setupKeyboardCallbacks(long p_216505_0_, org.lwjgl.glfw.GLFWKeyCallbackI p_216505_2_, org.lwjgl.glfw.GLFWCharModsCallbackI p_216505_3_)
-
setupMouseCallbacks
public static void setupMouseCallbacks(long p_216503_0_, org.lwjgl.glfw.GLFWCursorPosCallbackI p_216503_2_, org.lwjgl.glfw.GLFWMouseButtonCallbackI p_216503_3_, org.lwjgl.glfw.GLFWScrollCallbackI p_216503_4_, org.lwjgl.glfw.GLFWDropCallbackI p_216503_5_)
-
grabOrReleaseMouse
public static void grabOrReleaseMouse(long p_216504_0_, int p_216504_2_, double p_216504_3_, double p_216504_5_)
-
isRawMouseInputSupported
public static boolean isRawMouseInputSupported()
-
updateRawMouseInput
public static void updateRawMouseInput(long p_224791_0_, boolean p_224791_2_)
-
-