MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / isKeyDown

Method isKeyDown

Minecraft-Utils/1.13/src/Variables.java:69–72  ·  view source on GitHub ↗
(int key)

Source from the content-addressed store, hash-verified

67 public Variables() {
68 Keyboard.init(new Keyboard.KeyboardHandler() {
69 @Override
70 public boolean isKeyDown(int key) {
71 return GLFW.glfwGetKey(getMinecraft().f.j(), key) == 1;
72 }
73
74 @Override
75 public void enableRepeatEvents(boolean repeat) {

Callers

nothing calls this directly

Calls 1

getMinecraftMethod · 0.95

Tested by

no test coverage detected