Package net.minecraft.client.util
Class InputUtil
java.lang.Object
net.minecraft.client.util.InputUtil
@Environment(CLIENT) public class InputUtil extends Object
- Mappings:
Namespace Name official dktintermediary net/minecraft/class_3675named net/minecraft/client/util/InputUtil
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInputUtil.Keystatic classInputUtil.Type -
Field Summary
Fields Modifier and Type Field Description private static intGLFW_RAW_MOUSE_MOTIONprivate static MethodHandleGLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLEstatic InputUtil.KeyUNKNOWN_KEY -
Constructor Summary
Constructors Constructor Description InputUtil() -
Method Summary
Modifier and Type Method Description static InputUtil.KeyfromKeyCode(int keyCode, int scanCode)static InputUtil.KeyfromTranslationKey(String translationKey)static booleanisKeyPressed(long handle, int code)static booleanisRawMouseMotionSupported()static voidsetCursorParameters(long handler, int int2, double double2, double double3)static voidsetKeyboardCallbacks(long handle, GLFWKeyCallbackI keyCallback, GLFWCharModsCallbackI charModsCallback)static voidsetMouseCallbacks(long handle, GLFWCursorPosCallbackI cursorPosCallback, GLFWMouseButtonCallbackI mouseButtonCallback, GLFWScrollCallbackI scrollCallback, GLFWDropCallbackI gLFWDropCallbackI)static voidsetRawMouseMotionMode(long window, boolean value)
-
Field Details
-
GLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLE
- Mappings:
Namespace Name Mixin selector official bLdkt;b:Ljava/lang/invoke/MethodHandle;intermediary field_20333Lnet/minecraft/class_3675;field_20333:Ljava/lang/invoke/MethodHandle;named GLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLELnet/minecraft/client/util/InputUtil;GLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLE:Ljava/lang/invoke/MethodHandle;
-
GLFW_RAW_MOUSE_MOTION
private static final int GLFW_RAW_MOUSE_MOTION- Mappings:
Namespace Name Mixin selector official cLdkt;c:Iintermediary field_20334Lnet/minecraft/class_3675;field_20334:Inamed GLFW_RAW_MOUSE_MOTIONLnet/minecraft/client/util/InputUtil;GLFW_RAW_MOUSE_MOTION:I
-
UNKNOWN_KEY
- Mappings:
Namespace Name Mixin selector official aLdkt;a:Ldkt$a;intermediary field_16237Lnet/minecraft/class_3675;field_16237:Lnet/minecraft/class_3675$class_306;named UNKNOWN_KEYLnet/minecraft/client/util/InputUtil;UNKNOWN_KEY:Lnet/minecraft/client/util/InputUtil$Key;
-
-
Constructor Details
-
InputUtil
public InputUtil()
-
-
Method Details
-
fromKeyCode
- Mappings:
Namespace Name Mixin selector official aLdkt;a(II)Ldkt$a;intermediary method_15985Lnet/minecraft/class_3675;method_15985(II)Lnet/minecraft/class_3675$class_306;named fromKeyCodeLnet/minecraft/client/util/InputUtil;fromKeyCode(II)Lnet/minecraft/client/util/InputUtil$Key;
-
fromTranslationKey
- Mappings:
Namespace Name Mixin selector official aLdkt;a(Ljava/lang/String;)Ldkt$a;intermediary method_15981Lnet/minecraft/class_3675;method_15981(Ljava/lang/String;)Lnet/minecraft/class_3675$class_306;named fromTranslationKeyLnet/minecraft/client/util/InputUtil;fromTranslationKey(Ljava/lang/String;)Lnet/minecraft/client/util/InputUtil$Key;
-
isKeyPressed
public static boolean isKeyPressed(long handle, int code)- Mappings:
Namespace Name Mixin selector official aLdkt;a(JI)Zintermediary method_15987Lnet/minecraft/class_3675;method_15987(JI)Znamed isKeyPressedLnet/minecraft/client/util/InputUtil;isKeyPressed(JI)Z
-
setKeyboardCallbacks
public static void setKeyboardCallbacks(long handle, GLFWKeyCallbackI keyCallback, GLFWCharModsCallbackI charModsCallback)- Mappings:
Namespace Name Mixin selector official aLdkt;a(JLorg/lwjgl/glfw/GLFWKeyCallbackI;Lorg/lwjgl/glfw/GLFWCharModsCallbackI;)Vintermediary method_15986Lnet/minecraft/class_3675;method_15986(JLorg/lwjgl/glfw/GLFWKeyCallbackI;Lorg/lwjgl/glfw/GLFWCharModsCallbackI;)Vnamed setKeyboardCallbacksLnet/minecraft/client/util/InputUtil;setKeyboardCallbacks(JLorg/lwjgl/glfw/GLFWKeyCallbackI;Lorg/lwjgl/glfw/GLFWCharModsCallbackI;)V
-
setMouseCallbacks
public static void setMouseCallbacks(long handle, GLFWCursorPosCallbackI cursorPosCallback, GLFWMouseButtonCallbackI mouseButtonCallback, GLFWScrollCallbackI scrollCallback, GLFWDropCallbackI gLFWDropCallbackI)- Mappings:
Namespace Name Mixin selector official aLdkt;a(JLorg/lwjgl/glfw/GLFWCursorPosCallbackI;Lorg/lwjgl/glfw/GLFWMouseButtonCallbackI;Lorg/lwjgl/glfw/GLFWScrollCallbackI;Lorg/lwjgl/glfw/GLFWDropCallbackI;)Vintermediary method_15983Lnet/minecraft/class_3675;method_15983(JLorg/lwjgl/glfw/GLFWCursorPosCallbackI;Lorg/lwjgl/glfw/GLFWMouseButtonCallbackI;Lorg/lwjgl/glfw/GLFWScrollCallbackI;Lorg/lwjgl/glfw/GLFWDropCallbackI;)Vnamed setMouseCallbacksLnet/minecraft/client/util/InputUtil;setMouseCallbacks(JLorg/lwjgl/glfw/GLFWCursorPosCallbackI;Lorg/lwjgl/glfw/GLFWMouseButtonCallbackI;Lorg/lwjgl/glfw/GLFWScrollCallbackI;Lorg/lwjgl/glfw/GLFWDropCallbackI;)V
-
setCursorParameters
public static void setCursorParameters(long handler, int int2, double double2, double double3)- Mappings:
Namespace Name Mixin selector official aLdkt;a(JIDD)Vintermediary method_15984Lnet/minecraft/class_3675;method_15984(JIDD)Vnamed setCursorParametersLnet/minecraft/client/util/InputUtil;setCursorParameters(JIDD)V
-
isRawMouseMotionSupported
public static boolean isRawMouseMotionSupported()- Mappings:
Namespace Name Mixin selector official aLdkt;a()Zintermediary method_21735Lnet/minecraft/class_3675;method_21735()Znamed isRawMouseMotionSupportedLnet/minecraft/client/util/InputUtil;isRawMouseMotionSupported()Z
-
setRawMouseMotionMode
public static void setRawMouseMotionMode(long window, boolean value)- Mappings:
Namespace Name Mixin selector official aLdkt;a(JZ)Vintermediary method_21736Lnet/minecraft/class_3675;method_21736(JZ)Vnamed setRawMouseMotionModeLnet/minecraft/client/util/InputUtil;setRawMouseMotionMode(JZ)V
-