Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Panteleymoon

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Panteleymoon

  1. I had the same problem, and here how I solved it: import org.lwjgl.glfw.GLFW; import net.minecraft.client.Minecraft; import net.minecraft.client.util.InputMappings; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; public class KeyboardHelper { private static final long WINDOW = Minecraft.getInstance().func_228018_at_().getHandle(); @OnlyIn(Dist.CLIENT) public static boolean isHoldingShift() { return InputMappings.isKeyDown(WINDOW, GLFW.GLFW_KEY_LEFT_SHIFT); }
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.