Class InputUtil

java.lang.Object
net.minecraft.client.util.InputUtil

@Environment(CLIENT)
public class InputUtil
extends Object
Mappings:
Namespace Name
official dkt
intermediary net/minecraft/class_3675
named net/minecraft/client/util/InputUtil
  • Field Details

    • GLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLE

      @Nullable private static final MethodHandle GLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLE
      Mappings:
      Namespace Name Mixin selector
      official b Ldkt;b:Ljava/lang/invoke/MethodHandle;
      intermediary field_20333 Lnet/minecraft/class_3675;field_20333:Ljava/lang/invoke/MethodHandle;
      named GLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLE Lnet/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 c Ldkt;c:I
      intermediary field_20334 Lnet/minecraft/class_3675;field_20334:I
      named GLFW_RAW_MOUSE_MOTION Lnet/minecraft/client/util/InputUtil;GLFW_RAW_MOUSE_MOTION:I
    • UNKNOWN_KEY

      public static final InputUtil.Key UNKNOWN_KEY
      Mappings:
      Namespace Name Mixin selector
      official a Ldkt;a:Ldkt$a;
      intermediary field_16237 Lnet/minecraft/class_3675;field_16237:Lnet/minecraft/class_3675$class_306;
      named UNKNOWN_KEY Lnet/minecraft/client/util/InputUtil;UNKNOWN_KEY:Lnet/minecraft/client/util/InputUtil$Key;
  • Constructor Details

    • InputUtil

      public InputUtil()
  • Method Details

    • fromKeyCode

      public static InputUtil.Key fromKeyCode​(int keyCode, int scanCode)
      Mappings:
      Namespace Name Mixin selector
      official a Ldkt;a(II)Ldkt$a;
      intermediary method_15985 Lnet/minecraft/class_3675;method_15985(II)Lnet/minecraft/class_3675$class_306;
      named fromKeyCode Lnet/minecraft/client/util/InputUtil;fromKeyCode(II)Lnet/minecraft/client/util/InputUtil$Key;
    • fromTranslationKey

      public static InputUtil.Key fromTranslationKey​(String translationKey)
      Mappings:
      Namespace Name Mixin selector
      official a Ldkt;a(Ljava/lang/String;)Ldkt$a;
      intermediary method_15981 Lnet/minecraft/class_3675;method_15981(Ljava/lang/String;)Lnet/minecraft/class_3675$class_306;
      named fromTranslationKey Lnet/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 a Ldkt;a(JI)Z
      intermediary method_15987 Lnet/minecraft/class_3675;method_15987(JI)Z
      named isKeyPressed Lnet/minecraft/client/util/InputUtil;isKeyPressed(JI)Z
    • setKeyboardCallbacks

      public static void setKeyboardCallbacks​(long handle, GLFWKeyCallbackI keyCallback, GLFWCharModsCallbackI charModsCallback)
      Mappings:
      Namespace Name Mixin selector
      official a Ldkt;a(JLorg/lwjgl/glfw/GLFWKeyCallbackI;Lorg/lwjgl/glfw/GLFWCharModsCallbackI;)V
      intermediary method_15986 Lnet/minecraft/class_3675;method_15986(JLorg/lwjgl/glfw/GLFWKeyCallbackI;Lorg/lwjgl/glfw/GLFWCharModsCallbackI;)V
      named setKeyboardCallbacks Lnet/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 a Ldkt;a(JLorg/lwjgl/glfw/GLFWCursorPosCallbackI;Lorg/lwjgl/glfw/GLFWMouseButtonCallbackI;Lorg/lwjgl/glfw/GLFWScrollCallbackI;Lorg/lwjgl/glfw/GLFWDropCallbackI;)V
      intermediary method_15983 Lnet/minecraft/class_3675;method_15983(JLorg/lwjgl/glfw/GLFWCursorPosCallbackI;Lorg/lwjgl/glfw/GLFWMouseButtonCallbackI;Lorg/lwjgl/glfw/GLFWScrollCallbackI;Lorg/lwjgl/glfw/GLFWDropCallbackI;)V
      named setMouseCallbacks Lnet/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 a Ldkt;a(JIDD)V
      intermediary method_15984 Lnet/minecraft/class_3675;method_15984(JIDD)V
      named setCursorParameters Lnet/minecraft/client/util/InputUtil;setCursorParameters(JIDD)V
    • isRawMouseMotionSupported

      public static boolean isRawMouseMotionSupported()
      Mappings:
      Namespace Name Mixin selector
      official a Ldkt;a()Z
      intermediary method_21735 Lnet/minecraft/class_3675;method_21735()Z
      named isRawMouseMotionSupported Lnet/minecraft/client/util/InputUtil;isRawMouseMotionSupported()Z
    • setRawMouseMotionMode

      public static void setRawMouseMotionMode​(long window, boolean value)
      Mappings:
      Namespace Name Mixin selector
      official a Ldkt;a(JZ)V
      intermediary method_21736 Lnet/minecraft/class_3675;method_21736(JZ)V
      named setRawMouseMotionMode Lnet/minecraft/client/util/InputUtil;setRawMouseMotionMode(JZ)V