Class InputUtil

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

@Environment(CLIENT)
public class InputUtil
extends Object
  • Field Details

    • GLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLE

      @Nullable private static final MethodHandle GLFW_RAW_MOUSE_MOTION_SUPPORTED_HANDLE
    • GLFW_RAW_MOUSE_MOTION

      private static final int GLFW_RAW_MOUSE_MOTION
    • UNKNOWN_KEY

      public static final InputUtil.Key UNKNOWN_KEY
  • Constructor Details

    • InputUtil

      public InputUtil()
  • Method Details

    • fromKeyCode

      public static InputUtil.Key fromKeyCode​(int keyCode, int scanCode)
    • fromTranslationKey

      public static InputUtil.Key fromTranslationKey​(String translationKey)
    • isKeyPressed

      public static boolean isKeyPressed​(long handle, int code)
    • setKeyboardCallbacks

      public static void setKeyboardCallbacks​(long handle, GLFWKeyCallbackI keyCallback, GLFWCharModsCallbackI charModsCallback)
    • setMouseCallbacks

      public static void setMouseCallbacks​(long handle, GLFWCursorPosCallbackI cursorPosCallback, GLFWMouseButtonCallbackI mouseButtonCallback, GLFWScrollCallbackI scrollCallback, GLFWDropCallbackI gLFWDropCallbackI)
    • setCursorParameters

      public static void setCursorParameters​(long handler, int int2, double double2, double double3)
    • isRawMouseMotionSupported

      public static boolean isRawMouseMotionSupported()
    • setRawMouseMotionMode

      public static void setRawMouseMotionMode​(long window, boolean value)